You are here

public function Event::bsonUnserialize in MongoDB 8.2

1 call to Event::bsonUnserialize()
Event::__construct in modules/mongodb_watchdog/src/Event.php
Constructor.

File

modules/mongodb_watchdog/src/Event.php, line 154

Class

Event
Class Event is a value object for a logged event.

Namespace

Drupal\mongodb_watchdog

Code

public function bsonUnserialize(array $data) : void {
  foreach (static::KEYS as $key) {
    if (isset($data[$key])) {
      $this->{$key} = $data[$key];
    }
  }
}