Example #1
0
 /**
  * @param \Orm\Zed\Customer\Persistence\SpyCustomer $customer
  *
  * @return string
  */
 protected function getCountryNameByCustomer(SpyCustomer $customer)
 {
     $countryName = '';
     if ($customer->getAddresses()->count() > 0) {
         $address = $customer->getAddresses()->get(0);
         $countryName = $address->getCountry()->getName();
     }
     return $countryName;
 }