Dingo\Api\Routing\Helpers::__call PHP Method

__call() public method

Magically handle calls to certain methods on the response factory.
public __call ( string $method, array $parameters ) : Response
$method string
$parameters array
return Dingo\Api\Http\Response
    public function __call($method, $parameters)
    {
        if (method_exists($this->response(), $method) || $method == 'array') {
            return call_user_func_array([$this->response(), $method], $parameters);
        }
        throw new ErrorException('Undefined method ' . get_class($this) . '::' . $method);
    }