LdapTools\Hydrator\ArrayHydrator::mergeDefaultAttributes PHP Method

mergeDefaultAttributes() protected method

Returns all of the attributes to be sent to LDAP after factoring in possible default schema values.
protected mergeDefaultAttributes ( array $attributes ) : array
$attributes array
return array
    protected function mergeDefaultAttributes(array $attributes)
    {
        if ($this->schema && !empty($this->schema->getDefaultValues())) {
            $attributes = array_merge($this->schema->getDefaultValues(), $attributes);
        }
        return $attributes;
    }