Pop\Mvc\Controller::getResponse PHP Method

getResponse() public method

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

Usage Example

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());
 }