Ejemplo n.º 1
0
 public function getAddressStr()
 {
     $addr = [];
     if ($this->city) {
         $addr[] = Common::fmtCity($this->city);
     }
     if ($this->street) {
         $addr[] = Common::fmtStreet($this->street);
     }
     if ($this->home) {
         $addr[] = Common::fmtHome($this->home);
     }
     if ($this->housing) {
         $addr[] = Common::fmtHousing($this->housing);
     }
     if ($this->building) {
         $addr[] = Common::fmtBuilding($this->building);
     }
     return implode(', ', $addr);
 }