Exemple #1
0
 /**
  * @param Cart $entity
  * @return null
  */
 protected function hasContactInfo(Cart $entity)
 {
     $hasContactInfo = $entity->getBillingAddress() && $entity->getBillingAddress()->getPhone() || $entity->getEmail();
     if (!$hasContactInfo) {
         $this->context->incrementErrorEntriesCount();
         $this->logger->debug(sprintf('Cart ID: %d was skipped because lack of contact info', $entity->getOriginId()));
         return false;
     }
     return true;
 }