$items */ public function __construct(private readonly array $items) { } /** * Retrieves all items in the base data collection. * * @return array The complete items array */ public function getItems(): array { return $this->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; } }