msgraph: add metadata to users to connect with default calendar

This commit is contained in:
2022-05-06 10:13:32 +02:00
parent 5331f1becc
commit 9935af0497
9 changed files with 181 additions and 12 deletions

View File

@@ -350,15 +350,20 @@ class User implements AdvancedUserInterface
}
/**
* Set attributes.
* Merge the attributes with existing attributes.
*
* @param array $attributes
*
* @return Report
* Only the key provided will be created or updated.
*/
public function setAttributes($attributes)
public function setAttributes(array $attributes): self
{
$this->attributes = $attributes;
$this->attributes = array_merge($this->attributes, $attributes);
return $this;
}
public function unsetAttribute($key): self
{
unset($this->attributes[$key]);
return $this;
}