LdapTools\Resolver\BatchValueResolver::getBatchesForAttributes PHP Method

getBatchesForAttributes() protected method

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