ConditionFactory
class ConditionFactory
Manage how Condition could interact with the current application state (Thelia)
Methods
__construct(
ContainerInterface $container)
Constructor
string
serializeConditionCollection(
ConditionCollection $collection)
Serialize a collection of conditions
unserializeConditionCollection(
string $serializedConditions)
Unserialize a collection of conditions
build(
string $conditionServiceId,
array $operators,
array $values)
Build a Condition from form
array
getInputsFromServiceId(
string $conditionServiceId)
Get Condition inputs from serviceId
array
getInputsFromConditionInterface(
ConditionInterface $condition)
Get Condition inputs from serviceId
Details
at line 42
__construct(
ContainerInterface $container)
Constructor
at line 55
string
serializeConditionCollection(
ConditionCollection $collection)
Serialize a collection of conditions
at line 80
ConditionCollection
unserializeConditionCollection(
string $serializedConditions)
Unserialize a collection of conditions
at line 114
ConditionInterface
build(
string $conditionServiceId,
array $operators,
array $values)
Build a Condition from form
at line 134
array
getInputsFromServiceId(
string $conditionServiceId)
Get Condition inputs from serviceId
at line 153
array
getInputsFromConditionInterface(
ConditionInterface $condition)
Get Condition inputs from serviceId