Piwik\API\Proxy::checkIfMethodIsAvailable PHP Method

checkIfMethodIsAvailable() protected method

protected checkIfMethodIsAvailable ( ReflectionMethod $method ) : boolean
$method ReflectionMethod
return boolean
    protected function checkIfMethodIsAvailable(ReflectionMethod $method)
    {
        if (!$method->isPublic() || $method->isConstructor() || $method->getName() === 'getInstance') {
            return false;
        }
        if ($this->hideIgnoredFunctions && false !== strstr($method->getDocComment(), '@ignore')) {
            return false;
        }
        if ($this->shouldHideAPIMethod($method->getDocComment())) {
            return false;
        }
        return true;
    }