value; public function getLabel(): ?string { $label = ucwords(str_replace('_', ' ', $this->value)); return translate($label); } public function getDays(): int { return match ($this) { self::DueUponReceipt => 0, self::Net7 => 7, self::Net10 => 10, self::Net15 => 15, self::Net30 => 30, self::Net60 => 60, self::Net90 => 90, }; } public function getDueDate(string $format): string { $days = $this->getDays() ?? 0; return company_today()->addDays($days)->translatedFormat($format); } }