public function __construct($redirectUrl) { $this->redirectUrl = $redirectUrl; parent::__construct(null, 302, array("Location: {$redirectUrl}")); }
public function __construct($content = null, array $headers = array()) { parent::__construct($content, 404, $headers); }
public function __construct($data) { parent::__construct(json_encode($data), 200, array('Content-type: text/json')); }