ApaiIO\Operations\AbstractOperation::__call PHP Метод

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

Magic setter and getter functions
public __call ( string $method, string $parameter ) : AbstractOperation
$method string Methodname
$parameter string Parameters
Результат AbstractOperation
    public function __call($method, $parameter)
    {
        if (substr($method, 0, 3) === 'set') {
            $this->parameters[substr($method, 3)] = array_shift($parameter);
            return $this;
        }
        if (substr($method, 0, 3) === 'get') {
            $key = substr($method, 3);
            return isset($this->parameters[$key]) ? $this->parameters[$key] : null;
        }
        throw new \BadFunctionCallException(sprintf('The function "%s" does not exist!', $method));
    }