adrema/app/Maildispatcher/Data/MailEntry.php

19 lines
325 B
PHP
Raw Normal View History

2023-06-12 13:12:46 +02:00
<?php
namespace App\Maildispatcher\Data;
use Spatie\LaravelData\Data;
class MailEntry extends Data
{
public function __construct(public string $email)
{
2023-07-10 10:31:56 +02:00
$this->email = strtolower($email);
2023-06-12 13:12:46 +02:00
}
2023-07-10 11:28:47 +02:00
public function is(self $mailEntry): bool
{
return $this->email === $mailEntry->email;
}
2023-06-12 13:12:46 +02:00
}