category = $category; $this->templates = $templates; } public function to_array(): array { return array( 'category' => $this->category, 'templates' => $this->templates, ); } }