1 | <?php |
||
20 | class ConstantCollection extends ArrayCollection |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Adds a new Constant at ConstantCollection. |
||
25 | * |
||
26 | * @param ConstantInterface $constant |
||
27 | * |
||
28 | * @throws \InvalidArgumentException |
||
29 | * @return bool |
||
30 | */ |
||
31 | 4 | public function add($constant) |
|
45 | |||
46 | /** |
||
47 | * Gets the element of the collection at the current internal iterator position. |
||
48 | * @return ConstantInterface |
||
49 | */ |
||
50 | 2 | public function current() |
|
54 | |||
55 | /** |
||
56 | * Gets the Constant Iterator. |
||
57 | * @return ConstantIterator|Constant[] |
||
58 | */ |
||
59 | 11 | public function getIterator() |
|
63 | |||
64 | /** |
||
65 | * Parse the Constant Collection to string. |
||
66 | * @return string |
||
67 | */ |
||
68 | 10 | public function toString() |
|
78 | |||
79 | /** |
||
80 | * Removes tags by name. |
||
81 | * |
||
82 | * @param $constantName |
||
83 | * |
||
84 | * @return ConstantCollection |
||
85 | */ |
||
86 | 1 | public function removeByName($constantName) |
|
102 | } |
||
103 |