CustomerDisallowedShippingMethodsRepository
in package
implements
CustomerDisallowedShippingMethodsRepository
Class CustomerDisallowedShippingMethodsRepository
Interfaces, Classes and Traits
- CustomerDisallowedShippingMethodsRepository
- Interface CustomerDisallowedShippingMethodsRepository
Table of Contents
- $mapper : CustomerDisallowedShippingMethodsMapper
- $reader : CustomerDisallowedShippingMethodsReader
- $writer : CustomerDisallowedShippingMethodsWriter
- __construct() : mixed
- getCustomersDisallowedShippingMethods() : ShippingMethods
- Returns all disallowed shipping methods for a given customer.
- setDisallowedShippingMethods() : void
- Sets the disallowed shipping methods for a given customer.
Properties
$mapper
private
CustomerDisallowedShippingMethodsMapper
$mapper
$reader
private
CustomerDisallowedShippingMethodsReader
$reader
$writer
private
CustomerDisallowedShippingMethodsWriter
$writer
Methods
__construct()
public
__construct(CustomerDisallowedShippingMethodsReader $reader, CustomerDisallowedShippingMethodsWriter $writer, CustomerDisallowedShippingMethodsMapper $mapper) : mixed
Parameters
- $reader : CustomerDisallowedShippingMethodsReader
- $writer : CustomerDisallowedShippingMethodsWriter
- $mapper : CustomerDisallowedShippingMethodsMapper
Return values
mixed —getCustomersDisallowedShippingMethods()
Returns all disallowed shipping methods for a given customer.
public
getCustomersDisallowedShippingMethods(int $customerId) : ShippingMethods
Parameters
- $customerId : int
Tags
Return values
ShippingMethods —setDisallowedShippingMethods()
Sets the disallowed shipping methods for a given customer.
public
setDisallowedShippingMethods(int $customerId, ShippingMethodId ...$shippingMethodIds) : void
Parameters
- $customerId : int
- $shippingMethodIds : ShippingMethodId