1 | <?php |
||
9 | final class Argument |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $index; |
||
15 | |||
16 | /** |
||
17 | * @var bool |
||
18 | */ |
||
19 | private $isDefaultAvailable; |
||
20 | |||
21 | /** |
||
22 | * @var |
||
23 | */ |
||
24 | private $default; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $meta; |
||
30 | |||
31 | /** |
||
32 | * @var \ReflectionParameter |
||
33 | */ |
||
34 | private $reflection; |
||
35 | |||
36 | 61 | public function __construct(\ReflectionParameter $parameter, $name) |
|
63 | |||
64 | /** |
||
65 | * Return reflection |
||
66 | * |
||
67 | * @return \ReflectionParameter |
||
68 | */ |
||
69 | 34 | public function get() |
|
73 | |||
74 | /** |
||
75 | * @param \ReflectionParameter $parameter |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | 61 | private function getTypeHint(\ReflectionParameter $parameter) |
|
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 36 | public function __toString() |
|
97 | |||
98 | /** |
||
99 | * @return bool |
||
100 | */ |
||
101 | 13 | public function isDefaultAvailable() |
|
105 | |||
106 | /** |
||
107 | * @return mixed |
||
108 | */ |
||
109 | 7 | public function getDefaultValue() |
|
113 | |||
114 | 7 | public function getMeta() |
|
118 | } |
||
119 |