Exemple #1
0
 /**
  * Gets a list of all phone numbers available for the given Lead object
  *
  * @param Lead $object
  *
  * @return array of [phone number, phone owner]
  */
 public function getPhoneNumbers($object)
 {
     $result = [];
     $phone = $object->getPhoneNumber();
     if (!empty($phone)) {
         $result[] = [$phone, $object];
     }
     return $result;
 }