test(casts): add tests for ShopperEstablishmentCodeCast functionality test(casts): add tests for ShopperServiceCodeCast functionality test(casts): add tests for ShopperSiteCodeCast functionality test(dto): update ProductDtoTest to include additional fields test(dto): update SettingDtoTest to remove arcadiaSites assertions test(events): update AnOrderHasBeenPlacedTest to use value objects test(entities): update OrderTest to use value objects for employee details test(value-objects): update EmployeeUpsertDataTest to use value objects test(pagination): update PaginationTest to access value properties test(services): update AppCustomerAuthServiceTest to use CrmHashcode test(services): update CrmServiceTest to use CrmHashcode for customer retrieval
21 lines
514 B
PHP
21 lines
514 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\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);
|
|
}
|
|
}
|