protected function getAvailableConditions()
    {
        /** @var CouponManager $couponManager */
        $couponManager = $this->container->get('thelia.coupon.manager');
        $availableConditions = $couponManager->getAvailableConditions();
        $cleanedConditions = [];
        /** @var ConditionInterface $availableCondition */
        foreach ($availableConditions as $availableCondition) {
            $condition = [];
            $condition['serviceId'] = $availableCondition->getServiceId();
            $condition['name'] = $availableCondition->getName();
            $condition['toolTip'] = $availableCondition->getToolTip();
            $cleanedConditions[] = $condition;
        }

        return $cleanedConditions;
    }
protected function getAvailableConditions()
    {
        /** @var CouponManager $couponManager */
        $couponManager = $this->container->get('thelia.coupon.manager');
        $availableConditions = $couponManager->getAvailableConditions();
        $cleanedConditions = [];
        /** @var ConditionInterface $availableCondition */
        foreach ($availableConditions as $availableCondition) {
            $condition = [];
            $condition['serviceId'] = $availableCondition->getServiceId();
            $condition['name'] = $availableCondition->getName();
            $condition['toolTip'] = $availableCondition->getToolTip();
            $cleanedConditions[] = $condition;
        }

        return $cleanedConditions;
    }
protected function getAvailableConditions ( ) { /** @var CouponManager $couponManager */ $ couponManager = $ this -> container -> get ( 'thelia.coupon.manager' ) ; $ availableConditions = $ couponManager -> getAvailableConditions ( ) ; $ cleanedConditions = [ ] ; /** @var ConditionInterface $availableCondition */ foreach ( $ availableConditions as $ availableCondition ) { $ condition = [ ] ; $ condition [ 'serviceId' ] = $ availableCondition -> getServiceId ( ) ; $ condition [ 'name' ] = $ availableCondition -> getName ( ) ; $ condition [ 'toolTip' ] = $ availableCondition -> getToolTip ( ) ; $ cleanedConditions [ ] = $ condition ; } return $ cleanedConditions ; }
Get all available conditions

@return array
Get all available conditions