public function numEnd() { $end = $this->offset + $this->limit; if ($end > $this->items()) { $end = $this->items(); } return $end; }