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 null|string|array |
||
50 | * @internal |
||
51 | */ |
||
52 | public $dataTypeParams; |
||
53 | |||
54 | /** |
||
55 | * @var string|null |
||
56 | * @internal |
||
57 | */ |
||
58 | public $ormEntity; |
||
59 | |||
60 | 6 | /** |
|
61 | * Constructor |
||
62 | 6 | * |
|
63 | * @param string $property |
||
64 | 6 | * @param string $className |
|
65 | 6 | */ |
|
66 | public function __construct($property, $className) |
||
72 | 6 | ||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function getPropertyName() |
||
80 | 2 | ||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | public function getSetter() |
||
88 | |||
89 | 1 | /** |
|
90 | 1 | * Sets property setter |
|
91 | * |
||
92 | 1 | * @param string|null $setter |
|
93 | * @return $this |
||
94 | */ |
||
95 | public function setSetter($setter = null) { |
||
100 | 3 | ||
101 | /** |
||
102 | 3 | * @return string |
|
103 | */ |
||
104 | public function getDataPath() |
||
108 | |||
109 | /** |
||
110 | * @param string|null $dataPath |
||
111 | 6 | * @return $this |
|
112 | */ |
||
113 | 6 | public function setDataPath($dataPath = null) |
|
119 | |||
120 | /** |
||
121 | * Returns property data type |
||
122 | * |
||
123 | 3 | * @return string |
|
124 | */ |
||
125 | 3 | public function getDataType() |
|
129 | |||
130 | /** |
||
131 | * Sets property data type |
||
132 | * |
||
133 | * @param string $dataType |
||
134 | 6 | * @return $this |
|
135 | */ |
||
136 | 6 | public function setDataType($dataType) |
|
142 | |||
143 | /** |
||
144 | 1 | * Returns additional data type params |
|
145 | * |
||
146 | 1 | * @return array|null|string |
|
147 | */ |
||
148 | public function getDataTypeParams() |
||
152 | |||
153 | /** |
||
154 | * Sets additional data type params |
||
155 | 6 | * |
|
156 | * @param array|null|string $dataTypeParams |
||
157 | 6 | * @return $this |
|
158 | */ |
||
159 | 6 | public function setDataTypeParams($dataTypeParams = null) |
|
165 | |||
166 | /** |
||
167 | * @inheritdoc |
||
168 | */ |
||
169 | public function getOrmEntityClass() |
||
173 | |||
174 | /** |
||
175 | * Sets name of ORM entity class |
||
176 | * |
||
177 | * @param string|null $entityClass |
||
178 | * @return $this |
||
179 | */ |
||
180 | public function setOrmEntityClass($entityClass = null) |
||
186 | } |