Imbo\Http\Response\Response::getModel PHP 메소드

getModel() 공개 메소드

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

Usage Example

예제 #1
0
파일: ResponseTest.php 프로젝트: ASP96/imbo
 /**
  * @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