1 | <?php |
||
7 | class ArgumentDescriptor |
||
8 | { |
||
9 | /** |
||
10 | * Get argument descriptions of a callable. |
||
11 | * |
||
12 | * @param $callable |
||
13 | * |
||
14 | * @return ArgumentDescriptions |
||
15 | */ |
||
16 | public function getDescriptions($callable) |
||
33 | |||
34 | /** |
||
35 | * @param $value |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getValueType($value) |
||
49 | |||
50 | /** |
||
51 | * @param \ReflectionParameter $parameter |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | private function getParameterType(\ReflectionParameter $parameter) |
||
65 | |||
66 | /** |
||
67 | * @param $callable |
||
68 | * |
||
69 | * @return \ReflectionFunctionAbstract |
||
70 | */ |
||
71 | private function getReflection($callable) |
||
87 | |||
88 | /** |
||
89 | * Get object class. |
||
90 | * |
||
91 | * It uses the Doctrine's `ClassUtils::getClass` method if exists, else the native `get_class` function. |
||
92 | * |
||
93 | * @param object $object |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | private function getObjectClass($object) |
||
101 | } |
||
102 |