1 | <?php |
||
18 | class Struct extends Annotation |
||
19 | { |
||
20 | /** |
||
21 | * Class name of structure property |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | private $class; |
||
26 | /** |
||
27 | * Inline structure properties |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | private $properties = []; |
||
32 | /** |
||
33 | * Property configuration |
||
34 | * |
||
35 | * @var array |
||
36 | */ |
||
37 | private $config = []; |
||
38 | |||
39 | /** |
||
40 | * Get structure class |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | 68 | public function getClass() |
|
48 | |||
49 | /** |
||
50 | * Get inline structure properties definition |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | 16 | public function getProperties() |
|
58 | |||
59 | /** |
||
60 | * Get structure config |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | 65 | public function getConfig() |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 71 | protected function parseValues(array &$values) |
|
95 | } |
||
96 |