| 1 | <?php |
||
| 11 | class ConstraintCollection extends ArrayCollection |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritDoc} |
||
| 15 | * |
||
| 16 | * @param Constraint $value A Constraint instance |
||
| 17 | */ |
||
| 18 | 1 | public function set($key, $value) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritDoc} |
||
| 27 | * |
||
| 28 | * @param Constraint $value A Constraint instance |
||
| 29 | */ |
||
| 30 | 7 | public function add($value) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Adds a constraint collection at the end of the current set by appending all |
||
| 39 | * constraint of the added collection. |
||
| 40 | * |
||
| 41 | * @param ConstraintCollection $collection A ConstraintCollection instance |
||
| 42 | */ |
||
| 43 | 1 | public function addCollection(ConstraintCollection $collection) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @param $value |
||
| 52 | */ |
||
| 53 | 8 | private function assertConstraintInstance($value) |
|
| 62 | } |
||
| 63 |