protected function parseFromClassProperties(ReflectionClass $reflection)
    {
        $result = [];

        // get dependencies from property comment
        $reflectionProperties = $reflection->getProperties(ReflectionProperty::IS_PUBLIC);

        foreach ($reflectionProperties as $reflectionProperty) {
            $tmpDependency = $this->getAnnotationFromSource($reflectionProperty->getDocComment());

            if ($tmpDependency) {
                $result[$reflectionProperty->getName()] = $tmpDependency;
            }
        }

        return $result;
    }
protected function parseFromClassProperties(ReflectionClass $reflection)
    {
        $result = [];

        // get dependencies from property comment
        $reflectionProperties = $reflection->getProperties(ReflectionProperty::IS_PUBLIC);

        foreach ($reflectionProperties as $reflectionProperty) {
            $tmpDependency = $this->getAnnotationFromSource($reflectionProperty->getDocComment());

            if ($tmpDependency) {
                $result[$reflectionProperty->getName()] = $tmpDependency;
            }
        }

        return $result;
    }
protected function parseFromClassProperties ( ReflectionClass $ reflection ) { $ result = [ ] ; // get dependencies from property comment $ reflectionProperties = $ reflection -> getProperties ( ReflectionProperty :: IS_PUBLIC ) ; foreach ( $ reflectionProperties as $ reflectionProperty ) { $ tmpDependency = $ this -> getAnnotationFromSource ( $ reflectionProperty -> getDocComment ( ) ) ; if ( $ tmpDependency ) { $ result [ $ reflectionProperty -> getName ( ) ] = $ tmpDependency ; } } return $ result ; }
Parses the dependencies from a given reflection out of the className' properties.

@param ReflectionClass $reflection The reflection instance to parse from

@author Benjamin Carl <opensource@clickalicious.de>

@return array An raw array containing the dependencies indexed
Parses the dependencies from a given reflection out of the className properties .