public function path($var = null)
    {
        if ($var !== null) {
            // Folder of the page.
            $this->folder = basename($var);
            // Path to the page.
            $this->path = dirname($var);
        }

        return $this->path ? $this->path . '/' . $this->folder : null;
    }
public function path($var = null)
    {
        if ($var !== null) {
            // Folder of the page.
            $this->folder = basename($var);
            // Path to the page.
            $this->path = dirname($var);
        }

        return $this->path ? $this->path . '/' . $this->folder : null;
    }
public function path ( $ var = null ) { if ( $ var !== null ) { // Folder of the page. $ this -> folder = basename ( $ var ) ; // Path to the page. $ this -> path = dirname ( $ var ) ; } return $ this -> path ? $ this -> path . '/' . $ this -> folder : null ; }
Gets and sets the path to the folder where the .md for this Page object resides.
This is equivalent to the filePath but without the filename.

@param  string $var the path

@return string|null      the path
Gets and sets the path to the folder where the . md for this Page object resides . This is equivalent to the filePath but without the filename .