public function limit(int $amount) { $this->items = array_slice($this->items, 0, $amount); return $this; }