1 | <?php declare(strict_types = 1); |
||
17 | class PropertyDefinition extends AbstractPropertyDefinition implements PropertyBuilderInterface |
||
18 | { |
||
19 | /** @var string Property name */ |
||
20 | protected $propertyName; |
||
21 | /** @var bool Flag that property is public */ |
||
22 | public $isPublic = false; |
||
23 | /** @var int Property modifiers */ |
||
24 | public $modifiers = 0; |
||
25 | |||
26 | /** |
||
27 | * Define dependency |
||
28 | * |
||
29 | * @param ReferenceInterface $dependency |
||
30 | * @return PropertyBuilderInterface |
||
31 | */ |
||
32 | 8 | public function defineDependency(ReferenceInterface $dependency): PropertyBuilderInterface |
|
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 2 | public function getPropertyName(): string |
|
46 | |||
47 | /** |
||
48 | * @param string $propertyName |
||
49 | * @return PropertyDefinition |
||
50 | */ |
||
51 | 10 | public function setPropertyName(string $propertyName): PropertyDefinition |
|
57 | |||
58 | /** |
||
59 | * @return int |
||
60 | */ |
||
61 | 2 | public function getModifiers(): int |
|
65 | |||
66 | /** |
||
67 | * @param int $modifiers |
||
68 | * @return PropertyDefinition |
||
69 | */ |
||
70 | 3 | public function setModifiers(int $modifiers): PropertyDefinition |
|
76 | |||
77 | /** |
||
78 | * @return boolean |
||
79 | */ |
||
80 | 3 | public function isPublic(): bool |
|
84 | |||
85 | /** |
||
86 | * @param boolean $isPublic |
||
87 | * @return PropertyDefinition |
||
88 | */ |
||
89 | 3 | public function setIsPublic(bool $isPublic): PropertyDefinition |
|
95 | } |
||
96 |