status = OrderStatus::from($status); return $this; } public function setWorkspace(string|Id|WorkspaceEntity $workspace): self { $this->workspace = is_string($workspace) ? new Id($workspace) : $workspace; return $this; } public function setPlan(string|Id|PlanEntity $plan): self { $this->plan = is_string($plan) ? new Id($plan) : $plan; return $this; } public function setPlanSnapshot( string|Id|PlanSnapshotEntity $planSnapshot ): self { $this->planSnapshot = is_string($planSnapshot) ? new Id($planSnapshot) : $planSnapshot; return $this; } public function setBillingCycle(string $billingCycle): self { $this->billingCycle = BillingCycle::from($billingCycle); return $this; } }