src/Sulu/Bundle/ResourceBundle/Resource/FilterManager.php
protected function isValidConditionData($data)
    {
        if (!array_key_exists('field', $data)) {
            throw new MissingConditionAttributeException('field');
        }
        if (!array_key_exists('operator', $data)) {
            throw new MissingConditionAttributeException('operator');
        }
        if (!array_key_exists('type', $data)) {
            throw new MissingConditionAttributeException('type');
        }
        if (!array_key_exists('value', $data)) {
            throw new MissingConditionAttributeException('value');
        }

        return true;
    }
protected function isValidConditionData($data)
    {
        if (!array_key_exists('field', $data)) {
            throw new MissingConditionAttributeException('field');
        }
        if (!array_key_exists('operator', $data)) {
            throw new MissingConditionAttributeException('operator');
        }
        if (!array_key_exists('type', $data)) {
            throw new MissingConditionAttributeException('type');
        }
        if (!array_key_exists('value', $data)) {
            throw new MissingConditionAttributeException('value');
        }

        return true;
    }
protected function isValidConditionData ( $ data ) { if ( ! array_key_exists ( 'field' , $ data ) ) { throw new MissingConditionAttributeException ( 'field' ) ; } if ( ! array_key_exists ( 'operator' , $ data ) ) { throw new MissingConditionAttributeException ( 'operator' ) ; } if ( ! array_key_exists ( 'type' , $ data ) ) { throw new MissingConditionAttributeException ( 'type' ) ; } if ( ! array_key_exists ( 'value' , $ data ) ) { throw new MissingConditionAttributeException ( 'value' ) ; } return true ; }
Checks if the given data is correct for a condition.

@param array $data The data to check

@return bool

@throws MissingConditionAttributeException
Checks if the given data is correct for a condition .