/** * Gets a list of all phone numbers available for the given B2bCustomer object * * @param B2bCustomer $object * * @return array of [phone number, phone owner] */ public function getPhoneNumbers($object) { $contact = $object->getContact(); if (!$contact) { return []; } return $this->rootProvider->getPhoneNumbers($contact); }