public function __construct(Theme $theme, array $properties) { parent::__construct($theme->grimoire, $properties); $this->theme = $theme; $this->cardBriefs = new CardCollection($this, $properties['cardBriefs']); }