1 | <?php declare(strict_types=1); |
||
18 | class ObjectSchema extends Schema |
||
19 | { |
||
20 | /** |
||
21 | * @var \stdClass|null |
||
22 | */ |
||
23 | protected $propertySchemas; |
||
24 | |||
25 | /** |
||
26 | * @var ComplexType |
||
27 | */ |
||
28 | protected $complexType; |
||
29 | |||
30 | /** |
||
31 | * @var string|null |
||
32 | */ |
||
33 | protected $xType; |
||
34 | |||
35 | /** |
||
36 | * @var string|null |
||
37 | */ |
||
38 | protected $xRefId; |
||
39 | |||
40 | /** |
||
41 | * ObjectSchema constructor. |
||
42 | * |
||
43 | * @param \stdClass $definition |
||
44 | * @param null|\stdClass $propertySchemas |
||
45 | * @param ComplexType $complexType |
||
46 | * @param null|string $xType |
||
47 | * @param null|string $xRefId |
||
48 | */ |
||
49 | public function __construct( |
||
63 | |||
64 | /** |
||
65 | * @return \stdClass |
||
66 | */ |
||
67 | public function getPropertySchemas(): \stdClass |
||
71 | |||
72 | /** |
||
73 | * @param string $name |
||
74 | * |
||
75 | * @return Schema |
||
76 | */ |
||
77 | public function getPropertySchema(string $name): Schema |
||
85 | |||
86 | /** |
||
87 | * @param string $name |
||
88 | * |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function hasPropertySchema(string $name): bool |
||
95 | |||
96 | /** |
||
97 | * @param ComplexType $complexType |
||
98 | * |
||
99 | * @return Schema |
||
100 | */ |
||
101 | public function setComplexType(ComplexType $complexType): Schema |
||
110 | |||
111 | /** |
||
112 | * @param ComplexType $type |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | public function isComplexType(ComplexType $type): bool |
||
120 | |||
121 | /** |
||
122 | * @return bool |
||
123 | */ |
||
124 | public function hasComplexType(): bool |
||
128 | |||
129 | /** |
||
130 | * @return ComplexType|null |
||
131 | */ |
||
132 | public function getComplexType() |
||
136 | |||
137 | /** |
||
138 | * @return string|null |
||
139 | */ |
||
140 | public function getXType() |
||
144 | |||
145 | /** |
||
146 | * @param string $xType |
||
147 | */ |
||
148 | public function setXType(string $xType): void |
||
152 | |||
153 | /** |
||
154 | * @return string|null |
||
155 | */ |
||
156 | public function getXRefId() |
||
160 | |||
161 | /** |
||
162 | * @param string|ComplexType $type |
||
163 | * |
||
164 | * @return bool |
||
165 | */ |
||
166 | public function isType($type): bool |
||
174 | } |
||
175 |