'Finanzabwicklung (Inkasso)', self::ContractDocuments => 'Vertragsdokumentation', self::InquiryAnswer => 'Beantwortung der Anfrage', self::GuestCommunication => 'Gastkommunikation', }; } public function question(): string { return match ($this) { self::Collection => 'Wer zieht das Geld des Gastes ein?', self::ContractDocuments => 'Wer stellt dem Gast die Vertragsunterlagen bereit?', self::InquiryAnswer => 'Womit antworten wir zuerst auf eine Anfrage?', self::GuestCommunication => 'Wer schreibt dem Gast zu welchem Anlass? (Standard – jeder Anlass bleibt einzeln einstellbar)', }; } /** The process result every template of this area provides – exactly once per process. */ public function result(): string { return match ($this) { self::Collection => 'money.collection_handled', self::ContractDocuments => 'contract.documented', self::InquiryAnswer => 'inquiry.answered', self::GuestCommunication => 'guest.communication_assigned', }; } /** The responsibility setting the chosen template fixes. */ public function setting(): ProcessSetting { return match ($this) { self::Collection => ProcessSetting::Payments, self::ContractDocuments => ProcessSetting::Documents, self::InquiryAnswer => ProcessSetting::InquiryAnswer, self::GuestCommunication => ProcessSetting::GuestMessages, }; } /** * Every setting a template of this area may fix or suggest – nothing else (no hidden coupling to other areas). * * @return list */ public function settings(): array { return match ($this) { self::Collection, self::ContractDocuments => [$this->setting()], // An information reserves nothing by definition; for an offer the reservation is only suggested. self::InquiryAnswer => [ProcessSetting::InquiryAnswer, ProcessSetting::PreReservation], self::GuestCommunication => [ProcessSetting::GuestMessages, ProcessSetting::ArrivalInfoSender, ProcessSetting::ReviewRequestSender], }; } }