getProperties(\ReflectionProperty::IS_PUBLIC) as $property) { $name = $property->getName(); if (in_array($name, $parent_properties)) { continue; } $value = $property->getValue($this); if ($value instanceof AnnotationInterface) { $value = $value->get(); } $definition[$name] = $value; } return $definition; } }