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;
    }