1 | <?php |
||
11 | final class Argument |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $index; |
||
17 | |||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $isDefaultAvailable; |
||
22 | |||
23 | /** |
||
24 | * @var |
||
25 | */ |
||
26 | private $default; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $meta; |
||
32 | |||
33 | /** |
||
34 | * @var \ReflectionParameter |
||
35 | */ |
||
36 | private $reflection; |
||
37 | |||
38 | 65 | public function __construct(\ReflectionParameter $parameter, string $name) |
|
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | 39 | public function __toString() |
|
66 | |||
67 | /** |
||
68 | * Return reflection |
||
69 | */ |
||
70 | 37 | public function get() : \ReflectionParameter |
|
74 | |||
75 | /** |
||
76 | * @return bool |
||
77 | */ |
||
78 | 13 | public function isDefaultAvailable() : bool |
|
82 | |||
83 | /** |
||
84 | * @return mixed |
||
85 | */ |
||
86 | 7 | public function getDefaultValue() |
|
90 | |||
91 | 7 | public function getMeta() : string |
|
95 | |||
96 | 65 | private function setDefaultValue(\ReflectionParameter $parameter) |
|
108 | |||
109 | 65 | private function getType(\ReflectionParameter $parameter) : string |
|
118 | } |
||
119 |