public function used(array $condition, array $data)
    {
        if (!isset($data['rule']['used'])) {
            return false;
        }

        return $this->compare($data['rule']['used'], $condition['value'], $condition['operator']);
    }
public function used(array $condition, array $data)
    {
        if (!isset($data['rule']['used'])) {
            return false;
        }

        return $this->compare($data['rule']['used'], $condition['value'], $condition['operator']);
    }
public function used ( array $ condition , array $ data ) { if ( ! isset ( $ data [ 'rule' ] [ 'used' ] ) ) { return false ; } return $ this -> compare ( $ data [ 'rule' ] [ 'used' ] , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
Returns true if the "number of usage" condition is met
@param array $condition
@param array $data
@return boolean
Returns true if the number of usage condition is met