Refactored the codebase to change the namespaces of various actions and queries from `App\Actions` to `App\Cqs\Actions` and `App\Queries` to `App\Cqs\Queries`. This restructuring improves organization and clarity in the codebase.
21 lines
518 B
PHP
21 lines
518 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Actions\Settings;
|
|
|
|
use App\Contracts\ActionInput;
|
|
use Domain\Models\ValueObjects\ShopperSiteCode;
|
|
use Webmozart\Assert\Assert;
|
|
|
|
final readonly class UpdateSettingsInput implements ActionInput
|
|
{
|
|
/**
|
|
* @param array<int, \Domain\Models\ValueObjects\ShopperSiteCode> $employeeSites
|
|
*/
|
|
public function __construct(
|
|
public array $employeeSites = [],
|
|
) {
|
|
Assert::allIsInstanceOf($this->employeeSites, ShopperSiteCode::class);
|
|
}
|
|
}
|