2026-09-30 10:01:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-11-10 14:28:00 +01:00
|
|
|
namespace App\Cqs\Actions\Crm;
|
2026-09-30 10:01:52 +02:00
|
|
|
|
|
|
|
|
use App\Contracts\ActionInput;
|
|
|
|
|
use Webmozart\Assert\Assert;
|
|
|
|
|
|
|
|
|
|
final readonly class UpdateCustomerPasswordInput implements ActionInput
|
|
|
|
|
{
|
|
|
|
|
public function __construct(
|
|
|
|
|
#[\SensitiveParameter]
|
|
|
|
|
public string $currentPassword,
|
|
|
|
|
#[\SensitiveParameter]
|
|
|
|
|
public string $newPassword,
|
|
|
|
|
) {
|
|
|
|
|
Assert::notEmpty($currentPassword);
|
|
|
|
|
Assert::notEmpty($newPassword);
|
|
|
|
|
Assert::notSame($currentPassword, $newPassword);
|
|
|
|
|
}
|
|
|
|
|
}
|