original_string: public function copy($template, $newName = null)
      {
          $response = $this->request(self::REQUEST_POST, 'templates/'.$template.'/copy', [
              'name' => $newName
          ]);
  
          return $response->response;
      }
code: public function copy($template, $newName = null)
      {
          $response = $this->request(self::REQUEST_POST, 'templates/'.$template.'/copy', [
              'name' => $newName
          ]);
  
          return $response->response;
      }
code_tokens: public function copy ( $ template , $ newName = null ) { $ response = $ this -> request ( self :: REQUEST_POST , 'templates/' . $ template . '/copy' , [ 'name' => $ newName ] ) ; return $ response -> response ; }
docstring: Creates copy of given template to active workspace
  
  @param integer $template
  @param string $newName
  
  @return \stdClass
  @throws \ActualReports\PDFGeneratorAPI\Exception
docstring_tokens: Creates copy of given template to active workspace