PhpSpec\CodeAnalysis\VisibilityAccessInspector::isExistingPublicMethod PHP Méthode

isExistingPublicMethod() private méthode

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