public function setSenderId($value)
    {
        if (is_numeric($value)) {
            if (strlen($value) <= self::SENDER_ID_NUMERIC_MAX) {
                $this->senderId = $value;
            } else {
                throw new \Exception('The sender ID is too long (' . self::SENDER_ID_NUMERIC_MAX . ' Max.).');
            }
        } elseif (ctype_alnum($value)) {
            if (strlen($value) <= self::SENDER_ID_ALPHANUMERIC_MAX) {
                $this->senderId = $value;
            } else {
                throw new \Exception('The sender ID is too long (' . self::SENDER_ID_ALPHANUMERIC_MAX . ' Max.).');
            }
        } else {
            throw new \Exception('The sender ID is not a numeric of alphanumeric.');
        }
        return $this;
    }
public function setSenderId($value)
    {
        if (is_numeric($value)) {
            if (strlen($value) <= self::SENDER_ID_NUMERIC_MAX) {
                $this->senderId = $value;
            } else {
                throw new \Exception('The sender ID is too long (' . self::SENDER_ID_NUMERIC_MAX . ' Max.).');
            }
        } elseif (ctype_alnum($value)) {
            if (strlen($value) <= self::SENDER_ID_ALPHANUMERIC_MAX) {
                $this->senderId = $value;
            } else {
                throw new \Exception('The sender ID is too long (' . self::SENDER_ID_ALPHANUMERIC_MAX . ' Max.).');
            }
        } else {
            throw new \Exception('The sender ID is not a numeric of alphanumeric.');
        }
        return $this;
    }
public function setSenderId ( $ value ) { if ( is_numeric ( $ value ) ) { if ( strlen ( $ value ) <= self :: SENDER_ID_NUMERIC_MAX ) { $ this -> senderId = $ value ; } else { throw new \ Exception ( 'The sender ID is too long (' . self :: SENDER_ID_NUMERIC_MAX . ' Max.).' ) ; } } elseif ( ctype_alnum ( $ value ) ) { if ( strlen ( $ value ) <= self :: SENDER_ID_ALPHANUMERIC_MAX ) { $ this -> senderId = $ value ; } else { throw new \ Exception ( 'The sender ID is too long (' . self :: SENDER_ID_ALPHANUMERIC_MAX . ' Max.).' ) ; } } else { throw new \ Exception ( 'The sender ID is not a numeric of alphanumeric.' ) ; } return $ this ; }
Set the sender ID.

@param string $value Sender ID.
@throws \Exception if the senderid is to long or is not an numeric/alphanumeric.
@return object the current instance.
Set the sender ID .