* @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:----KCBMhHcZUTxQVNTzdk2NcKIuD4fYaJ7cIb5SIXIoNepGU240FIFtziC6CYwt6KyAZOd0XUr64AMaCUHfxgf6occBBbGyEX5F8B5J5dEQLKq/MCHv3qVos19IxX4jEGthNuN6abi8WAxMtmnCXZ/1seDfgFKNG5R6ZXwrgIdHL9mGU8MhK5C4KSJTTCLj46MflCftlPH3DCaCxCcnKeyFpitv4vJG0YCdQcR5zNXp7aCTtegPtm6dhJxc0RugzRes4jcgxt2z87/ljj0YNp/KLFgu99+arDmo68pafduH90FfsMObVEa/K4UMYYoO7oIdT9ti2xMCTv8bWTTSKpR18IiBIxG0LwxIjZ9zOzCbmEjKuRxic5ceHKoSMqhck7zwE7D40vUA0I2vwNGdeKQUQLPHdD7eQLdafhWCxB6E/WkEU5UulLjCXNoWHR7u9khCnLih00Kb7S0+QzuDZ6ab65HPy6rPSIfyHjtoTda4RSFQJuW7ylCwClYRFpcLlOf0m6yIk1YeaHGSgNZeKAZe1KeBFnY5vpo7ownAqUPmds9rLayvNKX8qPz8/f550pj7DobgXV8h3rgf7Jz8bJqvDpCHNhxyYJuKzMLtsBymoduxwiSYVGBagOPEv7dX/b7uGznAmOf1HB3Loj41z+1+DLDPeHIJwI1dqPzYKdAe2XA=----ATTACHMENT:----ODYyNTE3NDM1Mzg2OTQxOCAzMTAwNDQzMDc3MTYzOTUzIDU2NTU5NzI1OTQ2NjczMzE=