feat: MailJet list handling with DOI, webhook receiver and API endpoint
addresses #869cut134
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Exception;
|
||||
|
||||
class NewsletterListNotAllowedException extends \InvalidArgumentException
|
||||
{
|
||||
/**
|
||||
* @param list<int> $listIds
|
||||
* @param list<int> $unknownListIds
|
||||
*/
|
||||
public function __construct(
|
||||
private readonly array $listIds,
|
||||
private readonly array $unknownListIds,
|
||||
) {
|
||||
parent::__construct('One or more Mailjet list IDs are not allowed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<int>
|
||||
*/
|
||||
public function getListIds(): array
|
||||
{
|
||||
return $this->listIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<int>
|
||||
*/
|
||||
public function getUnknownListIds(): array
|
||||
{
|
||||
return $this->unknownListIds;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user