src/ViewResponse.php
public static function create($template = null, $view = '', $viewdata = [], $status = 200, $headers = array())
    {
        if (!$template instanceof TemplateEngineInterface) {
            throw new InvalidArgumentException('The first argument of ViewResponse::create must be an instance of Laasti\Response\Engines\TemplateEngineInterface');
        }
        return new static($template, $view, $viewdata, $status, $headers);
    }
public static function create($template = null, $view = '', $viewdata = [], $status = 200, $headers = array())
    {
        if (!$template instanceof TemplateEngineInterface) {
            throw new InvalidArgumentException('The first argument of ViewResponse::create must be an instance of Laasti\Response\Engines\TemplateEngineInterface');
        }
        return new static($template, $view, $viewdata, $status, $headers);
    }
public static function create ( $ template = null , $ view = '' , $ viewdata = [ ] , $ status = 200 , $ headers = array ( ) ) { if ( ! $ template instanceof TemplateEngineInterface ) { throw new InvalidArgumentException ( 'The first argument of ViewResponse::create must be an instance of Laasti\Response\Engines\TemplateEngineInterface' ) ; } return new static ( $ template , $ view , $ viewdata , $ status , $ headers ) ; }
Instantiates a new ViewResponse
@param TemplateEngineInterface $template
@param string $view
@param array $viewdata
@param int $status
@param array $headers
@return \static
@throws InvalidArgumentException
Instantiates a new ViewResponse