/** * @return Response */ private function city() { $cities = City::all(array('id', 'name', 'country')); $countries = array('RU', 'UA', 'UK'); $data = array('type' => Type::CITY, 'time' => Time::ts(), 'list' => $cities->toArray(), 'countries' => $countries); $this->response = new Response($data, Type::CITY, null); return $this->response; }