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