LdapTools\Object\LdapObject::refresh PHP Method

refresh() public method

Updates a set of attributes/values on the object without incurring a tracked modification.
public refresh ( array $attributes )
$attributes array
    public function refresh(array $attributes)
    {
        foreach ($attributes as $attribute => $value) {
            if ($this->has($attribute)) {
                $this->attributes[$this->resolveAttributeName($attribute)] = $value;
            } else {
                $this->attributes[$attribute] = $value;
            }
        }
        return $this;
    }