1 | <?php |
||
20 | class ArgumentCollection extends ArrayCollection |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Add a Argument on collection.<br /> |
||
25 | * The index is a argument name, then will replace |
||
26 | * if exist a index with the same name. |
||
27 | * |
||
28 | * @param ArgumentInterface $argument |
||
29 | * |
||
30 | * @throws \InvalidArgumentException |
||
31 | * @return boolean |
||
32 | */ |
||
33 | 13 | public function add($argument) |
|
48 | |||
49 | /** |
||
50 | * Gets Argument Iterator |
||
51 | * @return ArgumentIterator|Argument[] |
||
52 | */ |
||
53 | 20 | public function getIterator() |
|
57 | |||
58 | /** |
||
59 | * Returns the arguments in string. |
||
60 | * @return string |
||
61 | */ |
||
62 | 18 | public function toString() |
|
77 | |||
78 | /** |
||
79 | * Removes tags by name. |
||
80 | * |
||
81 | * @param string|array|Argument $argumentName |
||
82 | * |
||
83 | * @return \ClassGeneration\ArgumentCollection |
||
84 | */ |
||
85 | 1 | public function removeByName($argumentName) |
|
101 | } |
||
102 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.