1 | <?php |
||
22 | class PropertyMetadata extends GenericMetadata implements PropertyMetadataInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | * @internal |
||
27 | */ |
||
28 | public $propertyName; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | * @internal |
||
33 | */ |
||
34 | public $setter; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | * @internal |
||
39 | */ |
||
40 | public $dataPath; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | * @internal |
||
45 | */ |
||
46 | public $dataType; |
||
47 | |||
48 | /** |
||
49 | * @var mixed |
||
50 | * @internal |
||
51 | */ |
||
52 | public $dataTypeParams; |
||
53 | |||
54 | /** |
||
55 | * @var string|null |
||
56 | * @internal |
||
57 | */ |
||
58 | public $converter; |
||
59 | |||
60 | /** |
||
61 | * @var array |
||
62 | * @internal |
||
63 | */ |
||
64 | public $groups = ['Default']; |
||
65 | |||
66 | 17 | /** |
|
67 | * Constructor |
||
68 | 17 | * |
|
69 | * @param string $property |
||
70 | 17 | * @param string $className |
|
71 | 17 | */ |
|
72 | public function __construct($property, $className) |
||
78 | 15 | ||
79 | /** |
||
80 | * @inheritdoc |
||
81 | */ |
||
82 | public function getPropertyName() |
||
86 | 9 | ||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | public function getSetter() |
||
94 | |||
95 | 8 | /** |
|
96 | 8 | * Sets property setter |
|
97 | * |
||
98 | 8 | * @param string|null $setter |
|
99 | * @return $this |
||
100 | */ |
||
101 | public function setSetter($setter = null) { |
||
106 | 8 | ||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | public function getDataPath() |
||
114 | |||
115 | 16 | /** |
|
116 | * @param string|null $dataPath |
||
117 | 16 | * @return $this |
|
118 | */ |
||
119 | public function setDataPath($dataPath = null) |
||
125 | 15 | ||
126 | /** |
||
127 | 15 | * Returns property data type |
|
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getDataType() |
||
135 | |||
136 | 16 | /** |
|
137 | * Sets property data type |
||
138 | 16 | * |
|
139 | * @param string $dataType |
||
140 | 16 | * @return $this |
|
141 | */ |
||
142 | public function setDataType($dataType) |
||
148 | 15 | ||
149 | /** |
||
150 | 15 | * Returns additional data type params |
|
151 | * |
||
152 | * @return mixed |
||
153 | */ |
||
154 | public function getDataTypeParams() |
||
158 | |||
159 | 16 | /** |
|
160 | * Sets additional data type params |
||
161 | 16 | * |
|
162 | * @param mixed $dataTypeParams |
||
163 | 16 | * @return $this |
|
164 | */ |
||
165 | public function setDataTypeParams($dataTypeParams = null) |
||
171 | 7 | ||
172 | /** |
||
173 | * @return string|null |
||
174 | */ |
||
175 | public function getConverter() |
||
179 | |||
180 | 16 | /** |
|
181 | * @param string|null $converter |
||
182 | 16 | * @return $this |
|
183 | */ |
||
184 | public function setConverter($converter) |
||
190 | |||
191 | /** |
||
192 | * @return array |
||
193 | */ |
||
194 | public function getGroups() |
||
198 | |||
199 | /** |
||
200 | * @param array $groups |
||
201 | * @return $this |
||
202 | */ |
||
203 | public function setGroups(array $groups) |
||
209 | } |
||
210 |