Copied!

OptionsRestMapperInterface

OptionsRestMapperInterface.php : 16

Map arbitrary Shipping Method Option to its string representation for the REST response.

Methods

publicmapOption()

OptionsRestMapperInterface.php : 23
public mapOption(string $key, mixed $value) : string

Parameters

Name Type Default value Description
$key string - -
$value mixed - -

Return values

string

publicsupports()

OptionsRestMapperInterface.php : 18
public supports(ShippingMethodTypeInterface $shippingMethodType, string $key) : bool

Parameters

Name Type Default value Description
$shippingMethodType ShippingMethodTypeInterface - -
$key string - -

Return values

bool