src/LdapTools/ConfigurationParseTrait.php
protected function isParsedConfigValid(array $config, array $required)
    {
        $inConfig = count(array_intersect_key(array_flip($required), array_filter($config)));

        return $inConfig === count($required);
    }
protected function isParsedConfigValid(array $config, array $required)
    {
        $inConfig = count(array_intersect_key(array_flip($required), array_filter($config)));

        return $inConfig === count($required);
    }
protected function isParsedConfigValid ( array $ config , array $ required ) { $ inConfig = count ( array_intersect_key ( array_flip ( $ required ) , array_filter ( $ config ) ) ) ; return $ inConfig === count ( $ required ) ; }
Checks whether all required values for the configuration have been set after the merge.

@param array $config
@param array $required
@return bool
Checks whether all required values for the configuration have been set after the merge .