protected static function settingWithFunc($name, $predicate)
    {
        $requirement                                = array();
        $requirement[Resources::SETTING_NAME]       = $name;
        $requirement[Resources::SETTING_CONSTRAINT] = $predicate;

        return $requirement;
    }
protected static function settingWithFunc($name, $predicate)
    {
        $requirement                                = array();
        $requirement[Resources::SETTING_NAME]       = $name;
        $requirement[Resources::SETTING_CONSTRAINT] = $predicate;

        return $requirement;
    }
protected static function settingWithFunc ( $ name , $ predicate ) { $ requirement = array ( ) ; $ requirement [ Resources :: SETTING_NAME ] = $ name ; $ requirement [ Resources :: SETTING_CONSTRAINT ] = $ predicate ; return $ requirement ; }
Creates a setting value condition using the passed predicate.

@param string   $name      The setting key name.
@param callable $predicate The setting value predicate.

@return array
Creates a setting value condition using the passed predicate .