1 | <?php |
||
21 | class PropertyMetadata extends BasePropertyMetadata |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | public $defaultGroup; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | public $constraintsByGroup = array(); |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getClassName() |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getPropertyName() |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getDefaultGroup() |
||
56 | |||
57 | /** |
||
58 | * @param string $group |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | protected function getGroup($group = null) |
||
66 | |||
67 | /** |
||
68 | * @param Assert $constraint |
||
69 | * @param string $group |
||
70 | */ |
||
71 | public function addConstraint(Assert $constraint, $group = null) |
||
80 | |||
81 | /** |
||
82 | * @param array $constraints |
||
83 | * @param string $group |
||
84 | */ |
||
85 | public function addConstraints(array $constraints, $group = null) |
||
91 | |||
92 | /** |
||
93 | * @return array |
||
94 | */ |
||
95 | public function getConstraints() |
||
99 | |||
100 | /** |
||
101 | * @param $group |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getConstraintsByGroup($group) |
||
109 | |||
110 | /** |
||
111 | * Merges the constraints of the given metadata into this object. |
||
112 | * |
||
113 | * @param PropertyMetadata $source |
||
114 | */ |
||
115 | public function mergeConstraints(PropertyMetadata $source) |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function serialize() |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function unserialize($str) |
||
149 | } |
||
150 |