src/Reflection/Parts/PropertyTrait.php 1 location
|
@@ 43-47 (lines=5) @@
|
40 |
|
$properties = $this->getSelfProperties(); |
41 |
|
|
42 |
|
if ($this instanceof ReflectionClass && $this->getParentClass() instanceof ReflectionClass) { |
43 |
|
foreach ($this->getParentClass()->getProperties() as $property) { |
44 |
|
if (!array_key_exists($property->getName(), $properties)) { |
45 |
|
$properties[$property->getName()] = $property; |
46 |
|
} |
47 |
|
} |
48 |
|
} |
49 |
|
|
50 |
|
if ($this instanceof ReflectionClass) { |
src/Reflection/Parts/TraitUseTrait.php 1 location
|
@@ 132-136 (lines=5) @@
|
129 |
|
if (!$trait instanceof ReflectionTrait) { |
130 |
|
continue; |
131 |
|
} |
132 |
|
foreach ($trait->getProperties() as $property) { |
133 |
|
if (!array_key_exists($property->getName(), $properties)) { |
134 |
|
$properties[$property->getName()] = $property; |
135 |
|
} |
136 |
|
} |
137 |
|
} |
138 |
|
|
139 |
|
return $properties; |