public function sendSms($message)
    {
        if (empty($this->phone)) {
            throw new Exceptions\InvalidRecipientException("Phonebook entry doesn't have a phone number.");
        }

        return $this->deviceParent->sendSms($this->phone, $message);
    }
public function sendSms($message)
    {
        if (empty($this->phone)) {
            throw new Exceptions\InvalidRecipientException("Phonebook entry doesn't have a phone number.");
        }

        return $this->deviceParent->sendSms($this->phone, $message);
    }
public function sendSms ( $ message ) { if ( empty ( $ this -> phone ) ) { throw new Exceptions \ InvalidRecipientException ( "Phonebook entry doesn't have a phone number." ) ; } return $ this -> deviceParent -> sendSms ( $ this -> phone , $ message ) ; }
Send an SMS message to the contact.

@param string $message Message.

@return Push
@throws Exceptions\ConnectionException
@throws Exceptions\InvalidRecipientException Thrown if the contact doesn't have a number.
@throws Exceptions\NoSmsException Thrown if the device cannot send SMS messages.
Send an SMS message to the contact .