Example #1
0
 /**
  * Add a required page
  * @param Page $page
  */
 public function addRequiredPage(Page $page)
 {
     if (!$page->isGlobal()) {
         throw new \Jazzee\Exception("{$page->getTitle()} (#{$page->getId()}) is not a global page and cannot be a required page for a cycle");
     }
     $this->requiredPages[] = $page;
 }