@@ 67-78 (lines=12) @@ | ||
64 | * A list of properties to be unset due to they are initialized (have a default value). |
|
65 | * @return string[] |
|
66 | */ |
|
67 | public function toBeUnsetProperties(): array |
|
68 | { |
|
69 | $names = []; |
|
70 | /** @var ReflectionProperty $property */ |
|
71 | foreach ($this->properties as $property) { |
|
72 | if ($this->doesDefaultMatter($property) && $property->isPublic()) { |
|
73 | $names[] = $property->getName(); |
|
74 | } |
|
75 | } |
|
76 | ||
77 | return $names; |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * A list of public properties. Any access to them be proxied. |
|
@@ 84-95 (lines=12) @@ | ||
81 | * A list of public properties. Any access to them be proxied. |
|
82 | * @return string[] |
|
83 | */ |
|
84 | public function publicProperties(): array |
|
85 | { |
|
86 | $names = []; |
|
87 | /** @var ReflectionProperty $property */ |
|
88 | foreach ($this->properties as $property) { |
|
89 | if ($property->isPublic()) { |
|
90 | $names[] = $property->getName(); |
|
91 | } |
|
92 | } |
|
93 | ||
94 | return $names; |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * @return string[] |