PHP Class Bluz\Cli\CliResponse
Allows creating a response by passing data to the constructor; by default,
serializes the data to JSON, sets a status code of 200 and sets the
Content-Type header to application/json.
Afficher le fichier
Open project: bluzphp/framework
Méthodes publiques
Méthode |
Description |
|
__construct ( mixed $data, integer $status = 200 ) |
Create a console response with the given data. |
|
Private Methods
Méthode |
Description |
|
encode ( mixed $data ) : string |
Encode the provided data to JSON. |
|
Method Details
__construct()
public méthode
Create a console response with the given data.