FeaturePhp/Model/ConstraintSolver.php
private static function _or($feature) {
        if ($feature->getOr()) {
            $children = array();
            foreach ($feature->getChildren() as $child)
                $children[] = Logic::is($child);
            return Logic::equiv(Logic::is($feature),
                                call_user_func_array("\FeaturePhp\Helper\Logic::_or", $children));
        }
    }
private static function _or($feature) {
        if ($feature->getOr()) {
            $children = array();
            foreach ($feature->getChildren() as $child)
                $children[] = Logic::is($child);
            return Logic::equiv(Logic::is($feature),
                                call_user_func_array("\FeaturePhp\Helper\Logic::_or", $children));
        }
    }
private static function _or ( $ feature ) { if ( $ feature -> getOr ( ) ) { $ children = array ( ) ; foreach ( $ feature -> getChildren ( ) as $ child ) $ children [ ] = Logic :: is ( $ child ) ; return Logic :: equiv ( Logic :: is ( $ feature ) , call_user_func_array ( "\FeaturePhp\Helper\Logic::_or" , $ children ) ) ; } }
Semantics for a feature that provides a choice using an inclusive or.
At least one child of such a feature is selected.
@param Feature $feature
@return callable
Semantics for a feature that provides a choice using an inclusive or . At least one child of such a feature is selected .