1 | <?php |
||
22 | class ArgumentCollection extends \ArrayObject |
||
23 | { |
||
24 | /** |
||
25 | * @var ArgumentDefinition[] |
||
26 | */ |
||
27 | protected $definitions = []; |
||
28 | |||
29 | /** |
||
30 | * @var RenderingContextInterface |
||
31 | */ |
||
32 | protected $renderingContext; |
||
33 | |||
34 | public function setRenderingContext(RenderingContextInterface $renderingContext): self |
||
39 | |||
40 | public function getRenderingContext(): RenderingContextInterface |
||
44 | |||
45 | public function getDefinitions(): iterable |
||
49 | |||
50 | public function assignAll(iterable $values): ArgumentCollection |
||
57 | |||
58 | public function getAllRaw(): iterable |
||
62 | |||
63 | public function getRaw(string $argumentName) |
||
68 | |||
69 | public function addDefinition(ArgumentDefinition $definition): ArgumentCollection |
||
75 | |||
76 | /** |
||
77 | * @param iterable|ArgumentDefinition[] $definitions |
||
78 | * @return ArgumentCollection |
||
79 | */ |
||
80 | public function setDefinitions(iterable $definitions): ArgumentCollection |
||
85 | |||
86 | public function offsetGet($offset) |
||
97 | |||
98 | public function getArrayCopy(): array |
||
106 | |||
107 | /** |
||
108 | * Creates arguments by padding with missing+optional arguments |
||
109 | * and casting or creating BooleanNode where appropriate. Input |
||
110 | * array may not contain all arguments - output array will. |
||
111 | */ |
||
112 | public function validate(): self |
||
126 | } |
||
127 |
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.