original_string: 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;
  
      }
code: 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;
  
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Generates the payload expected by the API for sms adding the optional items .