| 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) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getType(): string |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return Schema |
||
| 43 | */ |
||
| 44 | public function getItemsSchema(): Schema |
||
| 48 | } |
||
| 49 |