public function __construct(Grimoire $grimoire, array $items) { foreach ($items as $properties) { $theme = new Theme($grimoire, $properties); $this->items[$theme->themeId] = $theme; } }