original_string: public function filePath($var = null)
      {
          if ($var !== null) {
              // Filename of the page.
              $this->name = basename($var);
              // Folder of the page.
              $this->folder = basename(dirname($var));
              // Path to the page.
              $this->path = dirname($var, 2);
          }
  
          return $this->path . '/' . $this->folder . '/' . ($this->name ?: '');
      }
code: public function filePath($var = null)
      {
          if ($var !== null) {
              // Filename of the page.
              $this->name = basename($var);
              // Folder of the page.
              $this->folder = basename(dirname($var));
              // Path to the page.
              $this->path = dirname($var, 2);
          }
  
          return $this->path . '/' . $this->folder . '/' . ($this->name ?: '');
      }
code_tokens: public function filePath ( $ var = null ) { if ( $ var !== null ) { // Filename of the page. $ this -> name = basename ( $ var ) ; // Folder of the page. $ this -> folder = basename ( dirname ( $ var ) ) ; // Path to the page. $ this -> path = dirname ( $ var , 2 ) ; } return $ this -> path . '/' . $ this -> folder . '/' . ( $ this -> name ? : '' ) ; }
docstring: Gets and sets the path to the .md file for this Page object.
  
  @param  string $var the file path
  
  @return string|null      the file path
docstring_tokens: Gets and sets the path to the . md file for this Page object .