function getFullAddress() { return $this->number . putPreComma($this->street) . putPreComma($this->barangay) . putPreComma($this->district) . putPreComma($this->municipalityCity) . putPreComma($this->province); }
function getFullAddress() { $number = $this->number; $street = $this->street; if ($this->number == "" || $this->number == "--" || $this->number == "00" || $this->number == " " || $this->number == " ") { $number = ""; } if ($this->street == "" || $this->street == "--" || $this->street == "00" || $this->street == " " || $this->street == " ") { $street = " "; } $fullAddress = $number . " " . $street; if ($fullAddress == " " || $fullAddress == "" || $fullAddress == " ") { $fullAddress = $this->barangay; } else { $fullAddress .= putPreComma($this->barangay); } if ($this->district != "" && $this->district != "no district") { $fullAddress .= putPreComma($this->district); } $fullAddress .= putPreComma($this->municipalityCity) . putPreComma($this->province); return $fullAddress; }
function getFullAddress() { $fullAddress = $this->number . putPreComma($this->street) . putPreComma($this->barangay); if ($this->district != "" && $this->district != "no district" && $this->district != 0) { $fullAddress .= putPreComma($this->district); } $fullAddress .= putPreComma($this->municipalityCity) . putPreComma($this->province); return $fullAddress; }