type === 'Currency') { return match ($this->id) { 'CurrencyA' => 'Currency A', 'CurrencyB' => 'Currency B', 'CurrencyC' => 'Currency C', default => 'Invalid Currency' }; } $item = CatalogItem::find(Uuid::fromString($this->id)->toString()); return $item === null ? 'Invalid Item' : $item->display_name; } }