/** * Shift the first Page off of the PageArray and return it. * * @return Page|NULL * */ public function shift() { if ($this->numTotal) { $this->numTotal--; } return parent::shift(); }