PhpSpec\CodeAnalysis\VisibilityAccessInspector::isExistingPublicMethod PHP 메소드

isExistingPublicMethod() 개인적인 메소드

private isExistingPublicMethod ( object $object, string $method ) : boolean
$object object
$method string
리턴 boolean
    private function isExistingPublicMethod($object, $method)
    {
        if (!method_exists($object, $method)) {
            return false;
        }
        $methodReflection = new ReflectionMethod($object, $method);
        return $methodReflection->isPublic();
    }