public function setRoot(Page $root, $isChild = false)
    {
        $this->root = $root;

        if (true === $isChild) {
            $this->setParent($root);
        }

        return $this;
    }
public function setRoot(Page $root, $isChild = false)
    {
        $this->root = $root;

        if (true === $isChild) {
            $this->setParent($root);
        }

        return $this;
    }
public function setRoot ( Page $ root , $ isChild = false ) { $ this -> root = $ root ; if ( true === $ isChild ) { $ this -> setParent ( $ root ) ; } return $ this ; }
Sets the root page.

@param Page                  $root               The root page to be set.
@param boolean               $isChild            Optional, if true sets also the parent of the page to $root (false by default).

@return PageBuilder                              The builder instance.
Sets the root page .