public function getContent() { $statusCode = isset($this->content['code']) ? $this->content['code'] : 200; return new Response(json_encode($this->content), $statusCode, array('content-type' => 'application/json')); }