1 | <?php |
||
21 | trait ParameterTrait |
||
22 | { |
||
23 | /** |
||
24 | * Get class/object constructor parameters |
||
25 | * |
||
26 | * @param string|object $class class name or object |
||
27 | * @return \ReflectionParameter[] |
||
28 | * @throws \InvalidArgumentException if something goes wrong |
||
29 | */ |
||
30 | protected function getConstructorParameters($class): array |
||
40 | |||
41 | /** |
||
42 | * Get callable parameters |
||
43 | * |
||
44 | * @param callable $callable |
||
45 | * @return \ReflectionParameter[] |
||
46 | * @throws \InvalidArgumentException if something goes wrong |
||
47 | */ |
||
48 | protected function getCallableParameters(callable $callable): array |
||
65 | } |
||
66 |