Pop\Mvc\Controller::getResponse PHP 메소드

getResponse() 공개 메소드

Get the response object
public getResponse ( ) : Pop\Http\Response
리턴 Pop\Http\Response
    public function getResponse()
    {
        return $this->response;
    }

Usage Example

예제 #1
0
 public function testSetAndGetResponse()
 {
     $c = new Controller();
     $c->setResponse(new Response(200, array('Content-Type' => 'text/html')));
     $this->assertEquals(200, $c->getResponse()->getCode());
 }