1 | <?php |
||
15 | class Property |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name; |
||
21 | |||
22 | /** |
||
23 | * @var Type |
||
24 | */ |
||
25 | protected $type; |
||
26 | |||
27 | /** |
||
28 | * @var Value |
||
29 | */ |
||
30 | protected $defaultValue; |
||
31 | |||
32 | /** |
||
33 | * @var Flag |
||
34 | */ |
||
35 | protected $flag; |
||
36 | |||
37 | /** |
||
38 | * @param string $name |
||
39 | * @param Value $defaultValue |
||
40 | * @param Type $type |
||
41 | * @param null|Flag $flag |
||
42 | */ |
||
43 | 6 | public function __construct(string $name, Value $defaultValue, Type $type, Flag $flag = null) |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 1 | public function name(): string |
|
58 | |||
59 | /** |
||
60 | * @return Value |
||
61 | */ |
||
62 | 1 | public function defaultValue(): Value |
|
66 | |||
67 | /** |
||
68 | * @return Type |
||
69 | */ |
||
70 | 1 | public function type(): Type |
|
74 | |||
75 | /** |
||
76 | * @return Visibility |
||
77 | */ |
||
78 | 4 | public function visibility(): Visibility |
|
82 | |||
83 | /** |
||
84 | * @param bool $isStatic |
||
85 | */ |
||
86 | 1 | public function setStatic(bool $isStatic): void |
|
90 | |||
91 | /** |
||
92 | * @return bool |
||
93 | */ |
||
94 | 1 | public function isStatic(): bool |
|
98 | } |
||
99 |