Redaxscript\Auth::__call PHP Method

__call() public method

call method as needed
Since: 3.0.0
public __call ( string $method = null, array $argumentArray = [] ) : mixed
$method string name of the method
$argumentArray array arguments of the method
return 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'));
        }
    }