| 1 | <?php declare(strict_types = 1); |
||
| 13 | class ArraySchema extends Schema |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Schema|null |
||
| 17 | */ |
||
| 18 | protected $itemsSchema; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * ArraySchema constructor. |
||
| 22 | * |
||
| 23 | * @param \stdClass $definition |
||
| 24 | * @param Schema|null $itemsSchema |
||
| 25 | */ |
||
| 26 | public function __construct(\stdClass $definition, $itemsSchema) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getType(): string |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Schema |
||
| 42 | */ |
||
| 43 | public function getItemsSchema(): Schema |
||
| 47 | } |
||
| 48 |