- Added UnsubscribeFromNewsletter action and input/output classes. - Introduced CrmHashcode value object and its cast. - Updated NewsletterController to use the new unsubscribe action. - Enhanced validation in UnsubscribeNewsletterRequest.
13 lines
260 B
PHP
13 lines
260 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shared\Helpers\Exceptions;
|
|
|
|
final class InvalidUuidException extends \InvalidArgumentException
|
|
{
|
|
public static function forValue(string $uuid): self
|
|
{
|
|
return new self("Invalid UUID: {$uuid}");
|
|
}
|
|
}
|