V2.1: Kommunikation nach Medium, Absicht und Wirkung (Fälle E/F)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8442d0a3d8
commit
8026eceab4
13 files changed
+633
-2
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Communication;
|
||||
|
||||
use App\Enums\Medium;
|
||||
use Carbon\CarbonImmutable;
|
||||
|
||||
/**
|
||||
* A message as the medium adapters hand it over (V2.1): raw data only. {@see $verifiedBookingId} is set by the adapter
|
||||
* itself from a reference it issued and can verify (signed token, reply to one of our mails) – a claim in the text is
|
||||
* never enough. {@see $consentGiven} is likewise the adapter's statement.
|
||||
*/
|
||||
final readonly class IncomingMessage
|
||||
{
|
||||
public function __construct(
|
||||
public Medium $medium,
|
||||
public string $sender,
|
||||
public string $text,
|
||||
public CarbonImmutable $receivedAt,
|
||||
public string $externalId,
|
||||
public ?int $verifiedBookingId = null,
|
||||
public bool $consentGiven = false,
|
||||
public ?string $senderName = null,
|
||||
) {}
|
||||
}
|
||||
Reference in new issue
Block a user