original_string: public function editor($template, $data = null, array $params = [])
      {
          $resource = 'templates/'.$template.'/editor';
          $params = array_merge([
              'key' => $this->key,
              'workspace' => $this->workspace,
              'signature' => $this->createSignature($resource)
          ], $params);
  
          if ($data)
          {
              $params['data'] = self::dataToString($data);
          }
  
          return $this->baseUrl.$resource.'?'.http_build_query($params);
      }
code: public function editor($template, $data = null, array $params = [])
      {
          $resource = 'templates/'.$template.'/editor';
          $params = array_merge([
              'key' => $this->key,
              'workspace' => $this->workspace,
              'signature' => $this->createSignature($resource)
          ], $params);
  
          if ($data)
          {
              $params['data'] = self::dataToString($data);
          }
  
          return $this->baseUrl.$resource.'?'.http_build_query($params);
      }
code_tokens: public function editor ( $ template , $ data = null , array $ params = [ ] ) { $ resource = 'templates/' . $ template . '/editor' ; $ params = array_merge ( [ 'key' => $ this -> key , 'workspace' => $ this -> workspace , 'signature' => $ this -> createSignature ( $ resource ) ] , $ params ) ; if ( $ data ) { $ params [ 'data' ] = self :: dataToString ( $ data ) ; } return $ this -> baseUrl . $ resource . '?' . http_build_query ( $ params ) ; }
docstring: Creates editor url
  
  @param integer $template
  @param array|\stdClass|string $data
  @param array $params
  
  @return string
  @throws \ActualReports\PDFGeneratorAPI\Exception
docstring_tokens: Creates editor url