'array']; public static function cycleCode(int $months): string { foreach (BillingCycleCatalog::builtInCodes() as $code) { if (BillingCycleCatalog::monthsFor($code) === $months) { return $code; } } return BillingCycleCatalog::codeFor($months); } public function summary(): array { return [ 'name' => $this->name, 'category' => $this->category, 'cpu' => $this->cpu, 'ram_mb' => $this->ram_mb, 'disk_gb' => $this->disk_gb, 'bandwidth_gb' => $this->bandwidth_gb, 'specs' => $this->specs ?? [], 'description' => $this->description, ]; } }