LdapTools\Hydrator\ArrayHydrator::convertValuesFromLdap PHP Méthode

convertValuesFromLdap() protected méthode

Replace attribute values with the converted values if the attribute has a converter defined.
protected convertValuesFromLdap ( array $entry ) : array
$entry array
Résultat array
    protected function convertValuesFromLdap(array $entry)
    {
        if (!$this->schema) {
            return $entry;
        }
        $valueResolver = BaseValueResolver::getInstance($this->schema, $entry, $this->type);
        $this->configureValueResolver($valueResolver, isset($entry['dn']) ? $entry['dn'] : null);
        return $valueResolver->fromLdap();
    }