Imbo\Http\Response\Response::getModel PHP Method

getModel() public method

Get the model instance
public getModel ( ) : null | ModelInterface
return null | ModelInterface
    public function getModel()
    {
        return $this->model;
    }

Usage Example

Example #1
0
 /**
  * @covers Imbo\Http\Response\Response::setModel
  * @covers Imbo\Http\Response\Response::setNotModified
  */
 public function testRemovesModelWhenMarkedAsNotModified()
 {
     $model = $this->getMock('Imbo\\Model\\ModelInterface');
     $this->assertSame($this->response, $this->response->setModel($model));
     $this->assertSame($this->response, $this->response->setNotModified());
     $this->assertSame(304, $this->response->getStatusCode());
     $this->assertNull($this->response->getModel());
 }
All Usage Examples Of Imbo\Http\Response\Response::getModel