SetDisallowedPaymentAndShippingMethodsAction
in package
Class SetDisallowedPaymentAndShippingMethodsAction
Tags
Table of Contents
- $paymentService : CustomerDisallowedPaymentMethodsWriteService
- $shippingService : CustomerDisallowedShippingMethodsWriteService
- __construct() : mixed
- __invoke() : Response
- sanitizeValues() : array<string|int, mixed>
- Trims values and removes empty and duplicate values from module array
Properties
$paymentService
private
CustomerDisallowedPaymentMethodsWriteService
$paymentService
$shippingService
private
CustomerDisallowedShippingMethodsWriteService
$shippingService
Methods
__construct()
public
__construct(CustomerDisallowedPaymentMethodsWriteService $paymentService, CustomerDisallowedShippingMethodsWriteService $shippingService) : mixed
Parameters
- $paymentService : CustomerDisallowedPaymentMethodsWriteService
- $shippingService : CustomerDisallowedShippingMethodsWriteService
Return values
mixed —__invoke()
public
__invoke(Request $request, Response $response, array<string|int, mixed> $args) : Response
Parameters
Return values
Response —sanitizeValues()
Trims values and removes empty and duplicate values from module array
private
sanitizeValues(array<string|int, mixed> $modules) : array<string|int, mixed>
Parameters
- $modules : array<string|int, mixed>