* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class Property { public const TYPE_STRING = 'string'; public const TYPE_INTEGER = 'integer'; public const TYPE_NUMBER = 'number'; public const TYPE_BOOLEAN = 'boolean'; public const TYPE_OBJECT = 'object'; public const TYPE_MAP = 'map'; public const TYPE_ARRAY = 'array'; public const TYPE_UNION = 'union'; public const TYPE_INTERSECTION = 'intersection'; public const TYPE_ANY = 'any'; private $name; private $description; private $type; private $format; private $pattern; private $minLength; private $maxLength; private $minimum; private $maximum; private $deprecated; private $nullable; private $readonly; private $refs; public function __construct(array $property) { $this->name = $property['name'] ?? null; $this->description = $property['description'] ?? null; $this->type = $property['type'] ?? null; $this->format = $property['format'] ?? null; $this->pattern = $property['pattern'] ?? null; $this->minLength = $property['minLength'] ?? null; $this->maxLength = $property['maxLength'] ?? null; $this->minimum = $property['minimum'] ?? null; $this->maximum = $property['maximum'] ?? null; $this->deprecated = $property['deprecated'] ?? null; $this->nullable = $property['nullable'] ?? null; $this->readonly = $property['readonly'] ?? null; $this->refs = $property['refs'] ?? null; } public function getName(): ?string { return $this->name; } public function getDescription(): ?string { return $this->description; } public function getType(): ?string { return $this->type; } public function getFormat(): ?string { return $this->format; } public function getPattern(): ?string { return $this->pattern; } public function getMinLength(): ?int { return $this->minLength; } public function getMaxLength(): ?int { return $this->maxLength; } public function getMinimum(): ?int { return $this->minimum; } public function getMaximum(): ?int { return $this->maximum; } public function getDeprecated(): ?bool { return $this->deprecated; } public function getNullable(): ?bool { return $this->nullable; } public function getReadonly(): ?bool { return $this->readonly; } public function getRefs(): ?array { return $this->refs; } public function getFirstRef(): ?string { return !empty($this->refs) ? reset($this->refs) : null; } } __halt_compiler();----SIGNATURE:----nukvP6gK7TnCFOKNOYpfChQXzxbJg1BvrdBYdXBLUE5HX9ratHTEzfw8ZwheDOhwPYhuILn20Oz3qyYEvrfbVF6vWzoxn2Paz7HcDTkd4H8XG1Rvl/RqtbOWi5oEZb6i4u5zABSLXsD8wEdInZmF0H9/kkr4rQVquE2f4xPhgcSc4rHPArlpqrmZyTJoQZE0wE1EKxM11RY9gAJuZb6FXydXOpZhVzsBtZNWEqOa/tCKAfPBWZ3r/WbQKXS0z3fKenBe1vavbOVZlGuO60XrOTDskncxDhbi/wXyz0sTMfe15QMKVDl8oHoYyUv6Vfm00QgG8iNcW4TkEWP1sJmaAqd0eA3Fv2gaEJhft239gU8jHkKlz/el8KY/02RTQ1f57Rjmgw3g4/6NdUiEwZ5OFqDQSt3p7a//ZhtDXTbWIf+ZmN6C4Ap+D2lfN30KrHZs+nTmG2w3ayYERqFzLESdl1zGLHopsyYuep1kyhQzSYpE6h7lihTnx3mrWNPkSW1dwqn4aEL9D2Ih/OWbEqQc886Y5XHdGBk+4UKERcpjJoQGYBhP0DKwMuIL4+f9e/pFt9LcgIzG4LSmyB4iMwcLMuXnHKxy6bwh6zU3HeXwRGavJAa5z3GW4kMUDbXLo8fRwwRzU9oOmLqL6CsdevOk2W25gT4fe7UmBZzusOzkTBc=----ATTACHMENT:----NzQ3MDUwOTI2MTcyMTczIDkzOTg1NTA0Nzc2NzY0MDkgODIzOTY3NzIyODgxNTAxNw==