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) |
|
64 | |||
65 | /** |
||
66 | * Return reflection |
||
67 | * |
||
68 | * @return \ReflectionParameter |
||
69 | */ |
||
70 | 34 | public function get() |
|
74 | |||
75 | /** |
||
76 | * @param \ReflectionParameter $parameter |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | 61 | private function getTypeHint(\ReflectionParameter $parameter) |
|
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | 36 | public function __toString() |
|
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | 13 | public function isDefaultAvailable() |
|
106 | |||
107 | /** |
||
108 | * @return mixed |
||
109 | */ |
||
110 | 7 | public function getDefaultValue() |
|
114 | |||
115 | 7 | public function getMeta() |
|
119 | } |
||
120 |