private function buildSmsPayload( $type, $to, $templateId, array $personalisation, $reference, $smsSenderId = NULL ){

        $payload = $this->buildPayload( $type, $to, $templateId, $personalisation, $reference );

        if ( isset($smsSenderId) && $smsSenderId != '' ) {
            $payload['sms_sender_id'] = $smsSenderId;
        }

        return $payload;

    }
private function buildSmsPayload( $type, $to, $templateId, array $personalisation, $reference, $smsSenderId = NULL ){

        $payload = $this->buildPayload( $type, $to, $templateId, $personalisation, $reference );

        if ( isset($smsSenderId) && $smsSenderId != '' ) {
            $payload['sms_sender_id'] = $smsSenderId;
        }

        return $payload;

    }
private function buildSmsPayload ( $ type , $ to , $ templateId , array $ personalisation , $ reference , $ smsSenderId = NULL ) { $ payload = $ this -> buildPayload ( $ type , $ to , $ templateId , $ personalisation , $ reference ) ; if ( isset ( $ smsSenderId ) && $ smsSenderId != '' ) { $ payload [ 'sms_sender_id' ] = $ smsSenderId ; } return $ payload ; }
Generates the payload expected by the API for sms adding the optional items.

@param string    $type
@param string    $to
@param string    $templateId
@param array     $personalisation
@param string    $reference
@param string    $smsSenderId

@return array
Generates the payload expected by the API for sms adding the optional items .