src/ReflectionEngine.php
public static function parseClassMethod($fullClassName, $methodName)
    {
        $class      = self::parseClass($fullClassName);
        $classNodes = $class->stmts;

        foreach ($classNodes as $classLevelNode) {
            if ($classLevelNode instanceof ClassMethod && $classLevelNode->name->toString() == $methodName) {
                return $classLevelNode;
            }
        }

        throw new \InvalidArgumentException("Method $methodName was not found in the $fullClassName");
    }
public static function parseClassMethod($fullClassName, $methodName)
    {
        $class      = self::parseClass($fullClassName);
        $classNodes = $class->stmts;

        foreach ($classNodes as $classLevelNode) {
            if ($classLevelNode instanceof ClassMethod && $classLevelNode->name->toString() == $methodName) {
                return $classLevelNode;
            }
        }

        throw new \InvalidArgumentException("Method $methodName was not found in the $fullClassName");
    }
public static function parseClassMethod ( $ fullClassName , $ methodName ) { $ class = self :: parseClass ( $ fullClassName ) ; $ classNodes = $ class -> stmts ; foreach ( $ classNodes as $ classLevelNode ) { if ( $ classLevelNode instanceof ClassMethod && $ classLevelNode -> name -> toString ( ) == $ methodName ) { return $ classLevelNode ; } } throw new \ InvalidArgumentException ( "Method $methodName was not found in the $fullClassName" ) ; }
Parses class method

@param string $fullClassName Name of the class
@param string $methodName Name of the method

@return ClassMethod
Parses class method