Bluz\Cli\CliResponse::__construct PHP Method

__construct() public method

Create a console response with the given data.
public __construct ( mixed $data, integer $status = 200 )
$data mixed Data to convert to string
$status integer Integer status code for the response; 200 by default.
    public function __construct($data, $status = 200)
    {
        $body = new Stream('php://temp', 'wb+');
        $body->write($this->encode($data));
        parent::__construct($body, $status);
    }