PHPStan\Reflection\Php\PhpClassReflectionExtension::getMethod PHP Method

getMethod() public method

public getMethod ( ClassReflection $classReflection, string $methodName ) : PHPStan\Reflection\MethodReflection
$classReflection PHPStan\Reflection\ClassReflection
$methodName string
return PHPStan\Reflection\MethodReflection
    public function getMethod(ClassReflection $classReflection, string $methodName) : MethodReflection
    {
        if (!isset($this->methods[$classReflection->getName()])) {
            $this->methods[$classReflection->getName()] = $this->createMethods($classReflection);
        }
        $methodName = strtolower($methodName);
        return $this->methods[$classReflection->getName()][$methodName];
    }