Méthode | Description | |
---|---|---|
__construct ( string $content, integer $statusCode = 200, string $contentType = 'text/html' ) | Constructor. | |
getContent ( ) : string | Get the content of the response. | |
getContentType ( ) : string | Get the MIME type. | |
getStatusCode ( ) : integer | Get the status code. | |
setContent ( string $content ) | Set the content of the response. | |
setContentType ( string $type ) | Set the MIME type. e.g: 'text/html'. | |
setStatusCode ( integer $code ) | Set the status code. e.g: 200 for ok response. |
public getContent ( ) : string | ||
Résultat | string |
public getContentType ( ) : string | ||
Résultat | string |
public getStatusCode ( ) : integer | ||
Résultat | integer |
public setContent ( string $content ) | ||
$content | string |
public setContentType ( string $type ) | ||
$type | string |
public setStatusCode ( integer $code ) | ||
$code | integer |