public function key() { if ($this->startAt > 0) { return $this->offset + ($this->startAt - 1) * $this->perPage; } else { return 0; } }