1 | <?php declare(strict_types = 1); |
||
17 | abstract class AbstractPropertyDefinition extends AbstractDefinition |
||
18 | { |
||
19 | /** @var ReferenceInterface */ |
||
20 | protected $dependency; |
||
21 | /** @var int Property modifiers */ |
||
22 | public $modifiers = 0; |
||
23 | /** @var bool Flag that property is public */ |
||
24 | public $isPublic = false; |
||
25 | /** @var string Property typeHint from typeHint hint */ |
||
26 | public $typeHint = ''; |
||
27 | /** @var mixed Property value */ |
||
28 | public $value; |
||
29 | |||
30 | /** |
||
31 | * @return int |
||
32 | */ |
||
33 | public function getModifiers(): int |
||
37 | |||
38 | /** |
||
39 | * @param int $modifiers |
||
40 | * @return AbstractPropertyDefinition |
||
41 | */ |
||
42 | public function setModifiers(int $modifiers): AbstractPropertyDefinition |
||
48 | |||
49 | /** |
||
50 | * @return boolean |
||
51 | */ |
||
52 | public function getIsPublic(): bool |
||
56 | |||
57 | /** |
||
58 | * @param boolean $isPublic |
||
59 | * @return AbstractPropertyDefinition |
||
60 | */ |
||
61 | public function setIsPublic(bool $isPublic): AbstractPropertyDefinition |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getTypeHint(): string |
||
75 | |||
76 | /** |
||
77 | * @param string $typeHint |
||
78 | * @return AbstractPropertyDefinition |
||
79 | */ |
||
80 | public function setTypeHint(string $typeHint): AbstractPropertyDefinition |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getValue() |
||
94 | |||
95 | /** |
||
96 | * @param mixed $value |
||
97 | * @return AbstractPropertyDefinition |
||
98 | */ |
||
99 | public function setValue($value): AbstractPropertyDefinition |
||
105 | |||
106 | /** |
||
107 | * @param ReferenceInterface $dependency |
||
108 | * @return AbstractPropertyDefinition |
||
109 | */ |
||
110 | public function setDependency(ReferenceInterface $dependency): AbstractPropertyDefinition |
||
116 | |||
117 | /** |
||
118 | * @return ReferenceInterface |
||
119 | */ |
||
120 | 3 | public function getDependency(): ReferenceInterface |
|
124 | } |
||
125 |