protected function cleanConditionForTemplate(ConditionCollection $conditions)
    {
        $cleanedConditions = [];
        /** @var $condition ConditionInterface */
        foreach ($conditions as $index => $condition) {
            $temp = [
                'serviceId' => $condition->getServiceId(),
                'index' => $index,
                'name' => $condition->getName(),
                'toolTip' => $condition->getToolTip(),
                'summary' => $condition->getSummary(),
                'validators' => $condition->getValidators()
            ];
            $cleanedConditions[] = $temp;
        }

        return $cleanedConditions;
    }
protected function cleanConditionForTemplate(ConditionCollection $conditions)
    {
        $cleanedConditions = [];
        /** @var $condition ConditionInterface */
        foreach ($conditions as $index => $condition) {
            $temp = [
                'serviceId' => $condition->getServiceId(),
                'index' => $index,
                'name' => $condition->getName(),
                'toolTip' => $condition->getToolTip(),
                'summary' => $condition->getSummary(),
                'validators' => $condition->getValidators()
            ];
            $cleanedConditions[] = $temp;
        }

        return $cleanedConditions;
    }
protected function cleanConditionForTemplate ( ConditionCollection $ conditions ) { $ cleanedConditions = [ ] ; /** @var $condition ConditionInterface */ foreach ( $ conditions as $ index => $ condition ) { $ temp = [ 'serviceId' => $ condition -> getServiceId ( ) , 'index' => $ index , 'name' => $ condition -> getName ( ) , 'toolTip' => $ condition -> getToolTip ( ) , 'summary' => $ condition -> getSummary ( ) , 'validators' => $ condition -> getValidators ( ) ] ; $ cleanedConditions [ ] = $ temp ; } return $ cleanedConditions ; }
Clean condition for template

@param ConditionCollection $conditions Condition collection

@return array
Clean condition for template