public function getParent()
    {
        $parentID = $this->getField("ParentID");
        if ($parentID) {
            return SiteTree::get_by_id(self::class, $parentID);
        }
        return null;
    }
public function getParent()
    {
        $parentID = $this->getField("ParentID");
        if ($parentID) {
            return SiteTree::get_by_id(self::class, $parentID);
        }
        return null;
    }
public function getParent ( ) { $ parentID = $ this -> getField ( "ParentID" ) ; if ( $ parentID ) { return SiteTree :: get_by_id ( self :: class , $ parentID ) ; } return null ; }
Get the parent of this page.

@return SiteTree Parent of this page
Get the parent of this page .