src/LdapTools/Resolver/BatchValueResolver.php
protected function getBatchesForAttributes(array $attributes)
    {
        $batches = [];

        $lcAttributes = array_map('strtolower', $attributes);
        foreach ($this->batches as $index => $batch) {
            /** @var Batch $batch */
            if (in_array(strtolower($batch->getAttribute()), $lcAttributes)) {
                $batches[$index] = $batch;
            }
        }

        return $batches;
    }
protected function getBatchesForAttributes(array $attributes)
    {
        $batches = [];

        $lcAttributes = array_map('strtolower', $attributes);
        foreach ($this->batches as $index => $batch) {
            /** @var Batch $batch */
            if (in_array(strtolower($batch->getAttribute()), $lcAttributes)) {
                $batches[$index] = $batch;
            }
        }

        return $batches;
    }
protected function getBatchesForAttributes ( array $ attributes ) { $ batches = [ ] ; $ lcAttributes = array_map ( 'strtolower' , $ attributes ) ; foreach ( $ this -> batches as $ index => $ batch ) { /** @var Batch $batch */ if ( in_array ( strtolower ( $ batch -> getAttribute ( ) ) , $ lcAttributes ) ) { $ batches [ $ index ] = $ batch ; } } return $ batches ; }
Given an array of attribute names, get all of the batches they have with their respective indexes

@param array $attributes
@return array
Given an array of attribute names get all of the batches they have with their respective indexes