1 | <?php |
||
15 | class Properties extends ObjectItem implements Constraint |
||
16 | { |
||
17 | /** @var Schema[] */ |
||
18 | protected $__arrayOfData = array(); |
||
19 | |||
20 | /** @var Schema */ |
||
21 | protected $__schema; |
||
22 | |||
23 | public function setSchema(Schema $schema) |
||
28 | |||
29 | public function getSchema() |
||
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * @param mixed $column |
||
37 | * @return $this|static |
||
38 | * @throws Exception |
||
39 | */ |
||
40 | 15 | public function __set($name, $column) |
|
49 | |||
50 | 3 | public static function create() |
|
54 | |||
55 | /** @var Schema|null */ |
||
56 | private $additionalProperties; |
||
57 | |||
58 | /** |
||
59 | * @param Schema $additionalProperties |
||
60 | * @return Properties |
||
61 | */ |
||
62 | public function setAdditionalProperties(Schema $additionalProperties = null) |
||
67 | |||
68 | |||
69 | /** @var Egg[][] */ |
||
70 | public $nestedProperties = array(); |
||
71 | |||
72 | /** @var Schema[] */ |
||
73 | public $nestedPropertyNames = array(); |
||
74 | |||
75 | 4 | protected function addNested(Schema $nested, $name) |
|
86 | |||
87 | /** |
||
88 | * @return Egg[][] |
||
89 | */ |
||
90 | public function getNestedProperties() |
||
94 | } |