original_string: public function getFilename($extension = '.php')
      {
          // If template is named,
          // return joined template names.
          if ($this->isNamed()) {
              return join('-', $this->file) . $extension;
          }
  
          // Use first template name, if template
          // file is an array, but is not named.
          if (is_array($this->file) && isset($this->file[0])) {
              return "{$this->file[0]}{$extension}";
          }
  
          return apply_filters('tonik/gin/template/filename', "{$this->file}{$extension}");
      }
code: public function getFilename($extension = '.php')
      {
          // If template is named,
          // return joined template names.
          if ($this->isNamed()) {
              return join('-', $this->file) . $extension;
          }
  
          // Use first template name, if template
          // file is an array, but is not named.
          if (is_array($this->file) && isset($this->file[0])) {
              return "{$this->file[0]}{$extension}";
          }
  
          return apply_filters('tonik/gin/template/filename', "{$this->file}{$extension}");
      }
code_tokens: public function getFilename ( $ extension = '.php' ) { // If template is named, // return joined template names. if ( $ this -> isNamed ( ) ) { return join ( '-' , $ this -> file ) . $ extension ; } // Use first template name, if template // file is an array, but is not named. if ( is_array ( $ this -> file ) && isset ( $ this -> file [ 0 ] ) ) { return "{$this->file[0]}{$extension}" ; } return apply_filters ( 'tonik/gin/template/filename' , "{$this->file}{$extension}" ) ; }
docstring: Gets template name.
  
  @return string
docstring_tokens: Gets template name .