Пример #1
0
 public static function getAddress($data)
 {
     if ($data) {
         $object = json_decode($data);
         return $object->address1 . ' ' . $object->address2 . ', ' . $object->city . ', ' . AreaCode::getCountryById($object->country)->area_name . ' ' . $object->postCode;
     }
 }