* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class ArrayType extends TypeAbstract { /** @var TypeInterface */ protected $items; /** @var integer */ protected $minItems; /** @var integer */ protected $maxItems; /** @var boolean */ protected $uniqueItems; /** * @return TypeInterface */ public function getItems(): ?TypeInterface { return $this->items; } /** * @param TypeInterface $items * @return self * @throws InvalidSchemaException */ public function setItems(TypeInterface $items): self { TypeAssert::assertItem($items); $this->items = $items; return $this; } /** * @return int */ public function getMinItems(): ?int { return $this->minItems; } /** * @param int $minItems * @return self */ public function setMinItems(int $minItems): self { $this->minItems = $minItems; return $this; } /** * @return int */ public function getMaxItems(): ?int { return $this->maxItems; } /** * @param int $maxItems * @return self */ public function setMaxItems(int $maxItems): self { $this->maxItems = $maxItems; return $this; } /** * @return bool */ public function isUniqueItems(): ?bool { return $this->uniqueItems; } /** * @param bool $uniqueItems * @return self */ public function setUniqueItems(bool $uniqueItems): self { $this->uniqueItems = $uniqueItems; return $this; } public function toArray(): array { return array_merge(parent::toArray(), array_filter([ 'type' => 'array', 'items' => $this->items, 'minItems' => $this->minItems, 'maxItems' => $this->maxItems, 'uniqueItems' => $this->uniqueItems, ], function($value){ return $value !== null; })); } public function __clone() { if ($this->items !== null) { $items = $this->items; if ($items instanceof TypeInterface) { $this->items = clone $items; } } } } __halt_compiler();----SIGNATURE:----fd5Fnq/Vrbq1Wx2NjhLgqWAeA8LLxNXLVu5AfkDh54Ftiq9rozM0XqQHAlY9oBoSNkR9M7dCWwSjG9dig6L7ACNPX1+a/+y5/CYAInTvNKrEXs2U0cwSL1DdnLFgKmTWLCJOA90kAyAQUNsZFvI4E0qbeWEiniIhlRguVSq6w5fWtNoeF01SlR8ocMxz/EFxmj65AIn4AYHuXmD6Rmx0OQ0TJw7zK04WgDVNIGFxYFuAkCPCXfs5exyeTDlDNdii22JbMJhBqoirKNswjnYLVkKPcthVTKBnfTQGvN3KYxnU8dk2gm3NyVXS+S6IwY11rTZa8MFytEfelFuxBoDcHWdC+xW1iT+v68tbfhvI+ImSntuxzDqYBQt6dwhzz85QJOIJG6Pui8qGsZCUNFqhlpMi/sXysK2JxwUyWFaoHG06Dxv0+F+5K+BCcWq/YWLr9rCMrbErZTeGKh3xPbjKWYMnp7gVCEEOI8GTwODg6qFXE4RQ6/k8tDXdoYYo+HUdoU7sdQm156+bcDfs/MaXDO5YxN71ynXC3q/KnDPcDM+mlFGNYhGXpNtvfc80iS2fgbt8dR8PIlhRnRQRKJTSDnt/Q69kkFPsRIIkf1L3HWexaTtGwdrqNi5Lvvy5cQH5qgpgcPS2fr+MvPIDCRGLhSDcIfa5UnciOeSsNFXgXL8=----ATTACHMENT:----MzIwMDY4MjQzODQwODQxMSA5MDQ3MTUxODIwNDQwMDk2IDcyMzc4NTk4NDM2NTgwOTA=