Copied!

GeneralPropertiesMapperInterface

GeneralPropertiesMapperInterface.php : 18
Interface

Methods

publiccreateFormData()

GeneralPropertiesMapperInterface.php : 23
public createFormData(string $type, string $ruleType, Language $language) : GeneralPropertiesInterface

Parameters

Name Type Default value Description
$type string - -
$ruleType string - -
$language Language - -

Return values

GeneralPropertiesInterface

publicmapCreateDataToStruct()

GeneralPropertiesMapperInterface.php : 34
public mapCreateDataToStruct(GeneralPropertiesInterface $data, DiscountCreateStruct $struct) : void

Parameters

Name Type Default value Description
$data GeneralPropertiesInterface - -
$struct DiscountCreateStruct - -

publicmapDiscountToFormData()

GeneralPropertiesMapperInterface.php : 29
public mapDiscountToFormData(DiscountInterface $discount, Language $language) : GeneralPropertiesInterface

Parameters

Name Type Default value Description
$discount DiscountInterface - -
$language Language - -

Return values

GeneralPropertiesInterface

publicmapUpdateDataToStruct()

GeneralPropertiesMapperInterface.php : 39
public mapUpdateDataToStruct(DiscountInterface $discount, GeneralPropertiesInterface $data, DiscountUpdateStruct $struct) : void

Parameters

Name Type Default value Description
$discount DiscountInterface - -
$data GeneralPropertiesInterface - -
$struct DiscountUpdateStruct - -