public function createOrUpdateConditions($serializableConditions, $locale)
    {
        $this->setSerializedConditions($serializableConditions);

        // Set object language (i18n)
        if (!\is_null($locale)) {
            $this->setLocale($locale);
        }

        $this->save();
    }
public function createOrUpdateConditions($serializableConditions, $locale)
    {
        $this->setSerializedConditions($serializableConditions);

        // Set object language (i18n)
        if (!\is_null($locale)) {
            $this->setLocale($locale);
        }

        $this->save();
    }
public function createOrUpdateConditions ( $ serializableConditions , $ locale ) { $ this -> setSerializedConditions ( $ serializableConditions ) ; // Set object language (i18n) if ( ! \ is_null ( $ locale ) ) { $ this -> setLocale ( $ locale ) ; } $ this -> save ( ) ; }
Create or Update this coupon condition

@param string $serializableConditions Serialized conditions ready to be saved
@param string $locale                 Coupon Language code ISO (ex: fr_FR)

@throws \Exception
Create or Update this coupon condition