Programming Language PHP

Namespace Oro\Bundle\SalesBundle\Entity

Class Lead

Method/Function getPhones

Total Examples 1

1 code examples of PHP Oro\Bundle\SalesBundle\Entity\Lead::getPhones extracted from open source projects

Was this example useful?
0
                                                    /**
     * Gets a list of all phone numbers available for the given Lead object
     *
     *
     * @return array of [phone number, phone owner]
     */
    public function getPhoneNumbers(Lead $object): array
    {
        $result = [];

        foreach ($object->getPhones() as $phone) {
            $result[] = [$phone->getPhone(), $object];
        }

        return $result;
    }