interface ConditionInterface

Manage how the application checks its state in order to check if it matches the implemented condition

Methods

__construct( FacadeInterface $adapter)

Constructor

string
getServiceId()

Get Condition Service id

$this
setValidatorsFromForm( array $operators, array $values)

Check validators relevancy and store them

bool
isMatching()

Test if the current application state matches conditions

string
getName()

Get I18n name

string
getToolTip()

Get I18n tooltip Explain in detail what the Condition checks

string
getSummary()

Get I18n summary Explain briefly the condition with given values

array
getValidators()

Return all validators

getSerializableCondition()

Return a serializable Condition

string
drawBackOfficeInputs()

Draw the input displayed in the BackOffice allowing Admin to set its Coupon Conditions

Details

at line 34
__construct( FacadeInterface $adapter)

Constructor

Parameters

FacadeInterface $adapter Service adapter

at line 41
string getServiceId()

Get Condition Service id

Return Value

string

at line 54
$this setValidatorsFromForm( array $operators, array $values)

Check validators relevancy and store them

Parameters

array $operators an array of operators (greater than, less than, etc.) entered in the condition parameter input form, one for each condition defined by the Condition
array $values an array of values entered in in the condition parameter input form, one for each condition defined by the Condition

Return Value

$this

Exceptions

InvalidConditionOperatorException
InvalidConditionValueException

at line 61
bool isMatching()

Test if the current application state matches conditions

Return Value

bool

at line 68
string getName()

Get I18n name

Return Value

string

at line 76
string getToolTip()

Get I18n tooltip Explain in detail what the Condition checks

Return Value

string

at line 84
string getSummary()

Get I18n summary Explain briefly the condition with given values

Return Value

string

at line 91
array getValidators()

Return all validators

Return Value

array

at line 98
SerializableCondition getSerializableCondition()

Return a serializable Condition

Return Value

SerializableCondition

at line 106
string drawBackOfficeInputs()

Draw the input displayed in the BackOffice allowing Admin to set its Coupon Conditions

Return Value

string HTML string