public function display(string $key, array $data, int $status = RegularResponse::HTTP_OK): ResponseInterface
    {
        $content = $this->templateStrategy->render($key, $data);

        $this->responseStrategy->setContent($content);
        $this->responseStrategy->setStatusCode($status);
        return $this->responseStrategy;
    }
public function display(string $key, array $data, int $status = RegularResponse::HTTP_OK): ResponseInterface
    {
        $content = $this->templateStrategy->render($key, $data);

        $this->responseStrategy->setContent($content);
        $this->responseStrategy->setStatusCode($status);
        return $this->responseStrategy;
    }
public function display ( string $ key , array $ data , int $ status = RegularResponse :: HTTP_OK ) : ResponseInterface { $ content = $ this -> templateStrategy -> render ( $ key , $ data ) ; $ this -> responseStrategy -> setContent ( $ content ) ; $ this -> responseStrategy -> setStatusCode ( $ status ) ; return $ this -> responseStrategy ; }
Make templating and give the response
@param string $key
@param array $data
@param int $status
@return RegularResponse
Make templating and give the response