src/tools/MbPage.php
public function setSubPage(MbPage $mbPage)
    {
        $this->subPages[$mbPage->getSlug()] = $mbPage;

        $mbPage->setParentPage($this);

        return $mbPage;
    }
public function setSubPage(MbPage $mbPage)
    {
        $this->subPages[$mbPage->getSlug()] = $mbPage;

        $mbPage->setParentPage($this);

        return $mbPage;
    }
public function setSubPage ( MbPage $ mbPage ) { $ this -> subPages [ $ mbPage -> getSlug ( ) ] = $ mbPage ; $ mbPage -> setParentPage ( $ this ) ; return $ mbPage ; }
Set sub page

@param MbPage $mbPage

@return MbPage subpage
Set sub page