slug = $slug; $this->category = $category; $this->description = $description; $this->workflow = $workflow; } public function getSlug(): string { return $this->slug; } public function getName(): string { return $this->workflow->getName(); } public function getCategory(): int { return $this->category; } public function getDescription(): string { return $this->description; } public function getWorkflow(): Workflow { return $this->workflow; } public function toArray(): array { return [ 'slug' => $this->getSlug(), 'name' => $this->getName(), 'category' => $this->getCategory(), 'description' => $this->getDescription(), 'workflow' => $this->getWorkflow()->toArray(), ]; } }