📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 11:07:17
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
vendor
/
phpdocumentor
/
type-resolver
/
src
/
PseudoTypes
📍 /home/orkouolp/web/testing.orkobd/laravel/vendor/phpdocumentor/type-resolver/src/PseudoTypes
🔄 Refresh
✏️
Editing: ShapeItem.php
Writable
<?php declare(strict_types=1); namespace phpDocumentor\Reflection\PseudoTypes; use phpDocumentor\Reflection\Type; use phpDocumentor\Reflection\Types\Mixed_; use function sprintf; abstract class ShapeItem { /** @var string|null */ private $key; /** @var Type */ private $value; /** @var bool */ private $optional; public function __construct(?string $key, ?Type $value, bool $optional) { $this->key = $key; $this->value = $value ?? new Mixed_(); $this->optional = $optional; } public function getKey(): ?string { return $this->key; } public function getValue(): Type { return $this->value; } public function isOptional(): bool { return $this->optional; } public function __toString(): string { if ($this->key !== null) { return sprintf( '%s%s: %s', $this->key, $this->optional ? '?' : '', (string) $this->value ); } return (string) $this->value; } }
💾 Save Changes
❌ Cancel