Constructor.
mixed $data The response data:
integer $status The response status code:
array $headers An array of response headers:
Overrides Response::__construct
public function __construct($data = null, $status = 200, $headers = array()) {
parent::__construct('', $status, $headers);
if (null === $data) {
$data = new \ArrayObject();
}
$this
->setData($data);
}