private function addTokens() {
      $headers = [];
      if ($this->appToken !== null) {
         $headers['App-Token'] = $this->appToken;
      }
      if ($this->sessionToken !== null) {
         $headers['Session-Token'] = $this->sessionToken;
      }

      return $headers;
   }
private function addTokens() {
      $headers = [];
      if ($this->appToken !== null) {
         $headers['App-Token'] = $this->appToken;
      }
      if ($this->sessionToken !== null) {
         $headers['Session-Token'] = $this->sessionToken;
      }

      return $headers;
   }
private function addTokens ( ) { $ headers = [ ] ; if ( $ this -> appToken !== null ) { $ headers [ 'App-Token' ] = $ this -> appToken ; } if ( $ this -> sessionToken !== null ) { $ headers [ 'Session-Token' ] = $ this -> sessionToken ; } return $ headers ; }
generate headers containing session and app tokens for Http client object

@return string[]
generate headers containing session and app tokens for Http client object