items; } /** * Retrieves a specific item by its key. * * @param string $key The key to search for * * @return mixed The item value or null if not found */ public function getItemByKey(string $key): mixed { return $this->items[$key] ?? null; } }