1 | <?php declare(strict_types = 1); |
||
17 | class ObjectSchema extends Schema |
||
18 | { |
||
19 | /** |
||
20 | * @var \stdClass|null |
||
21 | */ |
||
22 | protected $propertySchemas; |
||
23 | |||
24 | /** |
||
25 | * @var ComplexType |
||
26 | */ |
||
27 | protected $complexType; |
||
28 | |||
29 | /** |
||
30 | * @var string|null |
||
31 | */ |
||
32 | protected $xType; |
||
33 | |||
34 | /** |
||
35 | * @var string|null |
||
36 | */ |
||
37 | protected $xRefId; |
||
38 | |||
39 | /** |
||
40 | * ObjectSchema constructor. |
||
41 | * |
||
42 | * @param \stdClass $definition |
||
43 | * @param null|\stdClass $propertySchemas |
||
44 | * @param ComplexType $complexType |
||
45 | * @param null|string $xType |
||
46 | * @param null|string $xRefId |
||
47 | */ |
||
48 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @return \stdClass |
||
67 | */ |
||
68 | public function getPropertySchemas(): \stdClass |
||
72 | |||
73 | /** |
||
74 | * @param string $name |
||
75 | * |
||
76 | * @return Schema |
||
77 | */ |
||
78 | public function getPropertySchema(string $name): Schema |
||
86 | |||
87 | /** |
||
88 | * @param string $name |
||
89 | * |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function hasPropertySchema(string $name): bool |
||
96 | |||
97 | /** |
||
98 | * @param ComplexType $complexType |
||
99 | * |
||
100 | * @return Schema |
||
101 | */ |
||
102 | public function setComplexType(ComplexType $complexType): Schema |
||
111 | |||
112 | /** |
||
113 | * @param ComplexType $type |
||
114 | * |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function isComplexType(ComplexType $type): bool |
||
121 | |||
122 | /** |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function hasComplexType(): bool |
||
129 | |||
130 | /** |
||
131 | * @return ComplexType |
||
132 | */ |
||
133 | public function getComplexType(): ComplexType |
||
137 | |||
138 | /** |
||
139 | * @return string|null |
||
140 | */ |
||
141 | public function getXType() |
||
145 | |||
146 | /** |
||
147 | * @return string|null |
||
148 | */ |
||
149 | public function getXRefId() |
||
153 | |||
154 | /** |
||
155 | * @param string|ComplexType $type |
||
156 | * |
||
157 | * @return bool |
||
158 | */ |
||
159 | public function isType($type): bool |
||
167 | } |
||
168 |