src/LdapTools/Resolver/ParameterResolver.php
protected function setRequirementsForAttribute($attribute, array $value)
    {
        $parameters = [];

        foreach ($value as $attrValue) {
            $parameters = array_filter(array_merge(
                $parameters,
                self::getParametersInValue($attrValue)
            ));
        }

        if (!empty($parameters)) {
            $this->requirements[$attribute] = $parameters;
        }
    }
protected function setRequirementsForAttribute($attribute, array $value)
    {
        $parameters = [];

        foreach ($value as $attrValue) {
            $parameters = array_filter(array_merge(
                $parameters,
                self::getParametersInValue($attrValue)
            ));
        }

        if (!empty($parameters)) {
            $this->requirements[$attribute] = $parameters;
        }
    }
protected function setRequirementsForAttribute ( $ attribute , array $ value ) { $ parameters = [ ] ; foreach ( $ value as $ attrValue ) { $ parameters = array_filter ( array_merge ( $ parameters , self :: getParametersInValue ( $ attrValue ) ) ) ; } if ( ! empty ( $ parameters ) ) { $ this -> requirements [ $ attribute ] = $ parameters ; } }
Given an attribute, set what parameters it requires.

@param string $attribute
@param array $value
Given an attribute set what parameters it requires .