Modular Framework
1.0
A light and thin PHP Framework
|
This class represents a response of a route. More...
Public Member Functions | |
createResponse () | |
Public Attributes | |
$entity | |
HttpStatus | $httpStatus |
string | $contentType |
This class represents a response of a route.
The ResponseEntity object returns a response from an entity corresponding to the content type. When a request is triggered and the ResponseEntity was returned it sets the http status value as the http status of the request.
createResponse | ( | ) |
Creates a response from the given entity. The entity is represented according to the content type.
string $contentType |
$entity |
HttpStatus $httpStatus |