1 | <?php |
||
27 | class MethodInspector extends Base |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @readwrite |
||
32 | * @var ObjectDefinition |
||
33 | */ |
||
34 | protected $definition; |
||
35 | |||
36 | /** |
||
37 | * @readwrite |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $name; |
||
41 | |||
42 | /** |
||
43 | * @var ReflectionParameter[] |
||
44 | */ |
||
45 | protected $metaData; |
||
46 | |||
47 | /** |
||
48 | * @read |
||
49 | * @var Parameter[] |
||
50 | */ |
||
51 | protected $arguments; |
||
52 | |||
53 | /** |
||
54 | * Set object definition |
||
55 | * |
||
56 | * @param ObjectDefinition $definition |
||
57 | * @return $this|self|MethodInspector |
||
58 | */ |
||
59 | 30 | public function setDefinition(ObjectDefinition $definition) |
|
64 | |||
65 | /** |
||
66 | * Gets constructor reflection object |
||
67 | * |
||
68 | * @return ReflectionParameter[] |
||
69 | */ |
||
70 | 30 | protected function getMetaData() |
|
84 | |||
85 | /** |
||
86 | * Gets method arguments |
||
87 | * |
||
88 | * @return Parameter[] |
||
89 | */ |
||
90 | 30 | public function getArguments() |
|
101 | |||
102 | /** |
||
103 | * Creates a Parameter object from provided ReflectionParameter object |
||
104 | * |
||
105 | * @param \ReflectionParameter $param |
||
106 | * |
||
107 | * @return Parameter |
||
108 | */ |
||
109 | 28 | private function getParameter(\ReflectionParameter $param) |
|
124 | } |