LdapTools\Resolver\BaseValueResolver::convertAggregateValues PHP Method

convertAggregateValues() protected method

Loops through all the attributes that are to be aggregated into a single attribute for a specific converter.
protected convertAggregateValues ( string $attribute, array $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array
$attribute string
$values array
$converter LdapTools\AttributeConverter\AttributeConverterInterface
return array
    protected function convertAggregateValues($attribute, array $values, AttributeConverterInterface $converter)
    {
        $this->aggregated[] = $attribute;
        $converterName = $this->schema->getConverter($attribute);
        $toAggregate = array_keys($this->schema->getConverterMap(), $converterName);
        $values = $this->iterateAggregates($toAggregate, $values, $converter);
        return is_array($values) ? $values : [$values];
    }