setControl($control); $this->setPageNumber($pageNumber); } /** * Set the Page Control * * @param Control $control Page Control * @return \FML\Script\Features\PagingPage */ public function setControl(Control $control) { $control->checkId(); $this->control = $control; return $this; } /** * Get the Page Control * * @return \FML\Controls\Control */ public function getControl() { return $this->control; } /** * Set the Page Number * * @param int $pageNumber Number of the Page * @return \FML\Script\Features\PagingPage */ public function setPageNumber($pageNumber) { $this->number = (int) $pageNumber; return $this; } /** * Get the Page Number * * @return int */ public function getPageNumber() { return $this->number; } }