protected function buildEmail($number, OutgoingMessage $message)
    {
        if (!$number['carrier']) {
            throw new \InvalidArgumentException('A carrier must be specified if using the E-Mail Driver.');
        }

        return $number['number'].'@'.$this->lookupGateway($number['carrier'], $message->isMMS());
    }
protected function buildEmail($number, OutgoingMessage $message)
    {
        if (!$number['carrier']) {
            throw new \InvalidArgumentException('A carrier must be specified if using the E-Mail Driver.');
        }

        return $number['number'].'@'.$this->lookupGateway($number['carrier'], $message->isMMS());
    }
protected function buildEmail ( $ number , OutgoingMessage $ message ) { if ( ! $ number [ 'carrier' ] ) { throw new \ InvalidArgumentException ( 'A carrier must be specified if using the E-Mail Driver.' ) ; } return $ number [ 'number' ] . '@' . $ this -> lookupGateway ( $ number [ 'carrier' ] , $ message -> isMMS ( ) ) ; }
Builds the email address of a number.

@param array                                $number
@param SimpleSoftwareIO\SMS\OutgoingMessage $message

@return string
Builds the email address of a number .