public function unserializeConditionCollection($serializedConditions)
    {
        $unserializedConditions = json_decode(base64_decode($serializedConditions));

        $collection = new ConditionCollection();

        if (!empty($unserializedConditions)) {
            /** @var SerializableCondition $condition */
            foreach ($unserializedConditions as $condition) {
                if ($this->container->has($condition->conditionServiceId)) {
                    /** @var ConditionInterface $conditionManager */
                    $conditionManager = $this->build(
                        $condition->conditionServiceId,
                        (array) $condition->operators,
                        (array) $condition->values
                    );
                    $collection[] = clone $conditionManager;
                }
            }
        }

        return $collection;
    }
public function unserializeConditionCollection($serializedConditions)
    {
        $unserializedConditions = json_decode(base64_decode($serializedConditions));

        $collection = new ConditionCollection();

        if (!empty($unserializedConditions)) {
            /** @var SerializableCondition $condition */
            foreach ($unserializedConditions as $condition) {
                if ($this->container->has($condition->conditionServiceId)) {
                    /** @var ConditionInterface $conditionManager */
                    $conditionManager = $this->build(
                        $condition->conditionServiceId,
                        (array) $condition->operators,
                        (array) $condition->values
                    );
                    $collection[] = clone $conditionManager;
                }
            }
        }

        return $collection;
    }
public function unserializeConditionCollection ( $ serializedConditions ) { $ unserializedConditions = json_decode ( base64_decode ( $ serializedConditions ) ) ; $ collection = new ConditionCollection ( ) ; if ( ! empty ( $ unserializedConditions ) ) { /** @var SerializableCondition $condition */ foreach ( $ unserializedConditions as $ condition ) { if ( $ this -> container -> has ( $ condition -> conditionServiceId ) ) { /** @var ConditionInterface $conditionManager */ $ conditionManager = $ this -> build ( $ condition -> conditionServiceId , ( array ) $ condition -> operators , ( array ) $ condition -> values ) ; $ collection [ ] = clone $ conditionManager ; } } } return $ collection ; }
Unserialize a collection of conditions

@param string $serializedConditions Serialized Conditions

@return ConditionCollection Conditions ready to be processed
Unserialize a collection of conditions