PHP Class Imbo\Http\Response\Response

Author: Christer Edvartsen ([email protected])
Inheritance: extends Symfony\Component\HttpFoundation\Response
Show file Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
getModel ( ) : null | ModelInterface Get the model instance
setError ( Error $error ) : Response Set an error model and update some parts of the response object
setModel ( Imbo\Model\ModelInterface $model = null ) : Response Set the model instance
setNotModified ( ) Marks the response as not modified as per the Symfony

Method Details

getModel() public method

Get the model instance
public getModel ( ) : null | ModelInterface
return null | ModelInterface

setError() public method

Set an error model and update some parts of the response object
public setError ( Error $error ) : Response
$error Imbo\Model\Error An error model instance
return Response

setModel() public method

Set the model instance
public setModel ( Imbo\Model\ModelInterface $model = null ) : Response
$model Imbo\Model\ModelInterface A model instance
return Response

setNotModified() public method

Marks the response as not modified as per the Symfony
public setNotModified ( )