protected function getGeneratedProperties(): array
    {
        $reflectionObject = new \ReflectionObject($this);
        $properties = $reflectionObject->getProperties(\ReflectionProperty::IS_PUBLIC);
        $result = [];
        foreach ($properties as $property) {
            if (!$property->isPublic() || @$property->isDefault()) {
                continue;
            }

            $result[] = $property;
        }

        return $result;
    }
protected function getGeneratedProperties(): array
    {
        $reflectionObject = new \ReflectionObject($this);
        $properties = $reflectionObject->getProperties(\ReflectionProperty::IS_PUBLIC);
        $result = [];
        foreach ($properties as $property) {
            if (!$property->isPublic() || @$property->isDefault()) {
                continue;
            }

            $result[] = $property;
        }

        return $result;
    }
protected function getGeneratedProperties ( ) : array { $ reflectionObject = new \ ReflectionObject ( $ this ) ; $ properties = $ reflectionObject -> getProperties ( \ ReflectionProperty :: IS_PUBLIC ) ; $ result = [ ] ; foreach ( $ properties as $ property ) { if ( ! $ property -> isPublic ( ) || @ $ property -> isDefault ( ) ) { continue ; } $ result [ ] = $ property ; } return $ result ; }
Returns an array of generated public properties.

@return \ReflectionProperty[]
Returns an array of generated public properties .