original_string: public function setTemplateExtension($extension)
      {
          $extension = (string) $extension;
          $extension = trim($extension);
          if ('.' == $extension[0]) {
              $extension = substr($extension, 1);
          }
  
          $this->extension = $extension;
      }
code: public function setTemplateExtension($extension)
      {
          $extension = (string) $extension;
          $extension = trim($extension);
          if ('.' == $extension[0]) {
              $extension = substr($extension, 1);
          }
  
          $this->extension = $extension;
      }
code_tokens: public function setTemplateExtension ( $ extension ) { $ extension = ( string ) $ extension ; $ extension = trim ( $ extension ) ; if ( '.' == $ extension [ 0 ] ) { $ extension = substr ( $ extension , 1 ) ; } $ this -> extension = $ extension ; }
docstring: Set Template Extension file
  
  @param string $extension
docstring_tokens: Set Template Extension file