1 | <?php |
||
11 | class CallableComplexFileBasedTemplateManager extends ComplexFileBasedTemplate |
||
12 | { |
||
13 | /** @var array|callable[] */ |
||
14 | private $nameToCallableCollection = array(); |
||
15 | |||
16 | /** |
||
17 | * @param string $name |
||
18 | * @param array $arguments |
||
19 | * @return mixed |
||
20 | */ |
||
21 | public function __call($name, array $arguments) |
||
35 | |||
36 | /** |
||
37 | * @param string $name |
||
38 | * @param callable $callable |
||
39 | * @return $this |
||
40 | * @throws InvalidArgumentException |
||
41 | */ |
||
42 | public function registerCallable($name, $callable) |
||
50 | |||
51 | /** |
||
52 | * @param string $name |
||
53 | * @return bool |
||
54 | */ |
||
55 | private function callableIsRegistered($name) |
||
59 | |||
60 | /** |
||
61 | * @param string $name |
||
62 | * @return callable |
||
63 | */ |
||
64 | private function getCallable($name) |
||
68 | |||
69 | /** |
||
70 | * @param callable $callable |
||
71 | * @param string $name |
||
72 | * @throws InvalidArgumentException |
||
73 | */ |
||
74 | private function validateCallableOrThrowInvalidArgumentException($callable, $name) |
||
92 | |||
93 | /** |
||
94 | * @param string $string |
||
95 | * @param string $name |
||
96 | * @throws InvalidArgumentException |
||
97 | */ |
||
98 | private function validateStringOrThrowInvalidArgumentException($string, $name) |
||
108 | } |
||
109 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.