Diff
Index: EmailQueueRecipient.php
--- EmailQueueRecipient.php (nonexistent)
+++ EmailQueueRecipient.php (revision 4)
@@ -0,0 +1,28 @@
+<?php
+declare(strict_types=1);
+
+namespace App\Webapp\Models;
+
+use Apex\Mercury\Email\EmailContact;
+use Apex\App\Interfaces\UserInterface;
+
+/**
+ * E-mail queue recipient
+ */
+class EmailQueueRecipient
+{
+
+ /**
+ * Constructor
+ */
+ public function __construct(
+ public readonly EmailContact $contact,
+ public readonly ?UserInterface $user = null,
+ public readonly array $data = [],
+ public readonly string $tracking_id = ''
+ ) {
+
+ }
+
+}
+
Full Code
<?php
declare(strict_types=1);
namespace App\Webapp\Models;
use Apex\Mercury\Email\EmailContact;
use Apex\App\Interfaces\UserInterface;
/**
* E-mail queue recipient
*/
class EmailQueueRecipient
{
/**
* Constructor
*/
public function __construct(
public readonly EmailContact $contact,
public readonly ?UserInterface $user = null,
public readonly array $data = [],
public readonly string $tracking_id = ''
) {
}
}