ldc-cocotte/app/Cqs/Actions/Auth/ResetCustomerPasswordInput.php

21 lines
422 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\Cqs\Actions\Auth;
use App\Contracts\ActionInput;
use App\Models\Customer;
use Webmozart\Assert\Assert;
final readonly class ResetCustomerPasswordInput implements ActionInput
{
public function __construct(
public Customer $customer,
#[\SensitiveParameter]
public string $password,
) {
Assert::stringNotEmpty($this->password);
}
}