PhpSpec\CodeAnalysis\VisibilityAccessInspector::isExistingPublicMethod PHP Method

isExistingPublicMethod() private method

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