/** * @param ClassReflectionInterface $classReflection * @param bool $isDocumented * @param array $properties * @return MagicPropertyReflectionInterface[] */ private function extractOwnFromClass(ClassReflectionInterface $classReflection, $isDocumented, array $properties) { foreach ($classReflection->getOwnMagicProperties() as $property) { if ($this->canBeExtracted($isDocumented, $properties, $property)) { $properties[$property->getName()] = $property; } } return $properties; }