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) |
|
57 | |||
58 | /** |
||
59 | * Return reflection |
||
60 | * |
||
61 | * @return \ReflectionParameter |
||
62 | */ |
||
63 | 34 | public function get() |
|
67 | |||
68 | /** |
||
69 | * @param \ReflectionParameter $parameter |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 61 | private function getTypeHint(\ReflectionParameter $parameter) |
|
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | 36 | public function __toString() |
|
91 | |||
92 | /** |
||
93 | * @return bool |
||
94 | */ |
||
95 | 13 | public function isDefaultAvailable() |
|
99 | |||
100 | /** |
||
101 | * @return mixed |
||
102 | */ |
||
103 | 7 | public function getDefaultValue() |
|
107 | |||
108 | 7 | public function getMeta() |
|
112 | |||
113 | 61 | private function setDefaultValue(\ReflectionParameter $parameter) |
|
125 | } |
||
126 |