ldc-boutique-cnc-sable/app/Actions/Crm/UpdateCustomerPasswordInput.php

23 lines
524 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\Actions\Crm;
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);
}
}