LdapTools\Resolver\AttributeValueResolver::fromLdap PHP Method

fromLdap() public method

Convert values from LDAP.
public fromLdap ( ) : array
return array
    public function fromLdap()
    {
        $entry = $this->convert($this->entry, false);
        foreach ($entry as $attribute => $value) {
            if ($this->schema->isMultivaluedAttribute($attribute) && !is_array($value)) {
                $entry[$attribute] = [$value];
            }
        }
        return $entry;
    }