id; } public function getTitle(): Title { return $this->title; } public function getDescription(): Description { return $this->description; } public function getIcon(): Icon { return $this->icon; } public function getFeatureList(): FeatureList { return $this->featureList; } public function getPrice(): Price { return $this->price; } public function getBillingCycle(): BillingCycle { return $this->billingCycle; } public function getCreditCount(): Count { return $this->creditCount; } public function getCreatedAt(): DateTimeInterface { return $this->createdAt; } public function getUpdatedAt(): ?DateTimeInterface { return $this->updatedAt; } public function getConfig(): PlanConfig { if (!$this->config instanceof PlanConfig) { $this->config = new PlanConfig($this->config); } return $this->config; } #[ORM\PreUpdate] public function preUpdate(): void { $this->updatedAt = new DateTime(); } }