src/Entity/Mail.php
protected function addressToString(array $field)
    {
        $address = array();
        foreach ($field as $key => $value) {
            $address[] = $key == $value ? $value : sprintf('%s <%s>', $value, $key);
        }

        return empty($address) ? null : implode(', ', $address);
    }
protected function addressToString(array $field)
    {
        $address = array();
        foreach ($field as $key => $value) {
            $address[] = $key == $value ? $value : sprintf('%s <%s>', $value, $key);
        }

        return empty($address) ? null : implode(', ', $address);
    }
protected function addressToString ( array $ field ) { $ address = array ( ) ; foreach ( $ field as $ key => $ value ) { $ address [ ] = $ key == $ value ? $ value : sprintf ( '%s <%s>' , $ value , $ key ) ; } return empty ( $ address ) ? null : implode ( ', ' , $ address ) ; }
Convert address container to a string representation

@param array $field

@return string
Convert address container to a string representation