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

        // get dependencies from method comment
        $reflectionMethods = $reflection->getMethods(ReflectionMethod::IS_PUBLIC);

        /* @var $reflectionMethod ReflectionMethod */
        foreach ($reflectionMethods as $reflectionMethod) {
            $tmpDependency = $this->getAnnotationFromSource($reflectionMethod->getDocComment());

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

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

        // get dependencies from method comment
        $reflectionMethods = $reflection->getMethods(ReflectionMethod::IS_PUBLIC);

        /* @var $reflectionMethod ReflectionMethod */
        foreach ($reflectionMethods as $reflectionMethod) {
            $tmpDependency = $this->getAnnotationFromSource($reflectionMethod->getDocComment());

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

        return $result;
    }
protected function parseFromClassMethods ( ReflectionClass $ reflection ) { $ result = [ ] ; // get dependencies from method comment $ reflectionMethods = $ reflection -> getMethods ( ReflectionMethod :: IS_PUBLIC ) ; /* @var $reflectionMethod ReflectionMethod */ foreach ( $ reflectionMethods as $ reflectionMethod ) { $ tmpDependency = $ this -> getAnnotationFromSource ( $ reflectionMethod -> getDocComment ( ) ) ; if ( $ tmpDependency ) { $ result [ $ reflectionMethod -> getName ( ) ] = $ tmpDependency ; } } return $ result ; }
Parses the dependencies from a given reflection out of the className' methods.

@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 methods .