Redaxscript\Auth::__call PHP Метод

__call() публичный Метод

call method as needed
С версии: 3.0.0
public __call ( string $method = null, array $argumentArray = [] ) : mixed
$method string name of the method
$argumentArray array arguments of the method
Результат mixed
    public function __call($method = null, $argumentArray = [])
    {
        $type = $argumentArray[0];
        if (array_key_exists($method, $this->_callArray[$type])) {
            return in_array($this->_callArray[$type][$method], $this->getPermission($type));
        }
        if ($method === 'getFilter') {
            return !in_array($this->_callArray['filter'][$method], $this->getPermission('filter'));
        }
    }