36 lines
704 B
PHP
36 lines
704 B
PHP
<?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;
|
|
}
|
|
}
|