vehicleOwn = $vehicleOwn; $this->format = $httpStatusCode; } public function get_all() { $data = $this->vehicleOwn->getAll(); $return = []; foreach ($data as $key => $value) { $return[] = [ 'name' => $value->description, 'vo_uuid' => $value->vo_uuid, ]; } return $this->format->mobile_success('Success',$return); } }