src/Transport/Mandrill/Mandrill.php
protected function mapAddressListToArray(Mail\AddressList $addresses, $type = 'to')
    {
        $array = [];
        /** @var Mail\Address() $address */
        foreach ($addresses as $address) {
            $array[] = [
                'email' => $address->getEmail(),
                'name' => $address->getName(),
                'type' => $type
            ];
        }
        return $array;
    }
protected function mapAddressListToArray(Mail\AddressList $addresses, $type = 'to')
    {
        $array = [];
        /** @var Mail\Address() $address */
        foreach ($addresses as $address) {
            $array[] = [
                'email' => $address->getEmail(),
                'name' => $address->getName(),
                'type' => $type
            ];
        }
        return $array;
    }
protected function mapAddressListToArray ( Mail \ AddressList $ addresses , $ type = 'to' ) { $ array = [ ] ; /** @var Mail\Address() $address */ foreach ( $ addresses as $ address ) { $ array [ ] = [ 'email' => $ address -> getEmail ( ) , 'name' => $ address -> getName ( ) , 'type' => $ type ] ; } return $ array ; }
Map Address List to Mandrill array

@param Mail\AddressList $addresses
@param string $type
@return array
Map Address List to Mandrill array