* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class Property { /** @var string */ private $name; /** @var string */ private $type; /** @var string */ private $docType; /** @var bool */ private $required; /** @var TypeInterface */ private $origin; public function __construct(string $name, string $type, string $docType, bool $required, TypeInterface $origin) { $this->name = $name; $this->type = $type; $this->docType = $docType; $this->required = $required; $this->origin = $origin; } /** * @return string */ public function getName(): string { return $this->name; } /** * @return string */ public function getType(): string { return $this->type; } /** * @return string */ public function getDocType(): string { return $this->docType; } /** * @return bool */ public function isRequired(): bool { return $this->required; } /** * @return string */ public function getComment(): ?string { return $this->origin instanceof TypeAbstract ? $this->origin->getDescription() : null; } /** * @return bool */ public function isNullable(): ?bool { return $this->origin instanceof TypeAbstract ? $this->origin->isNullable() : null; } /** * @return bool */ public function isDeprecated(): ?bool { return $this->origin instanceof TypeAbstract ? $this->origin->isDeprecated() : null; } /** * @return bool */ public function isReadonly(): ?bool { return $this->origin instanceof TypeAbstract ? $this->origin->isReadonly() : null; } /** * @return TypeInterface */ public function getOrigin(): TypeInterface { return $this->origin; } } __halt_compiler();----SIGNATURE:----HpERsEARUqh05KMmhUJf168aGBoZzJp/NYI1PKX8Ua+sTKxW9BtxacoIVeM6P7Ldjb9GuVXG3fFCzCBKTXzxFxa64zBYqjXBX+DR3Ce4+a4BqPq4CIUz0GrCVKt4THPdxYE+zDUy0kpQPpIXxQacAZ8QUMQqMwFV7meePmsziZjE0NaJI7JFfR4FuEss9NlKXlWYE4lIWvC9rOf/UNOuZpIQowWfk9Hm9K5+AnJKCX4Q0AFHCqDV8giEDFTRRUpfLn9PB7Wu631HbLLCzPL3R+ChMDALBhienOnat6olFy0y8gvK3D2ynA6zhGVnjb0rW2/qmHX7pKthOnftGw7FhwZgqTdbhE+vYMw9DPDS1zERWmGcCPofwBgrdvtcmXo1tTUaCT2TXYZMdYnl5PkiCv0rrdaH5eOStehlrCg/CCAn2OKu8dLy4BgbaZuRTg7sgSQ1uCMOTiruWUNopfjcweWDK9SMdMCOVBSA9lpyAS4ywl1F7vdyZ0iNm5fHSIbeEJoj6cXn/5vg+TqvRV0nfKIAQ7gYo2MC9xMh0vMzkObqyG3HJddEHyCrmeO/gNXGTFjh6jGE8zjkuyhGuxeCcxIg6SuOmowlkpVxWDJ0sGRi0tTipNwe7zLZ8vVnwXsfhAdrzMy7JhWPn5ZRl+xq3DT6dqcrvQSR4qCq2y24MQo=----ATTACHMENT:----MjExMzg2MTQ3NDUwNDU3NSA2MDEzNTA0MTY5NzI5OTM2IDg3MzIzMDg0NTk2Njk3NzE=