public function __construct(JsonDatabase $db, $name, $id)
 {
     $this->path = $db->getPath($name);
     $this->hook = $id;
 }
 public function __construct(JsonDatabase $database, $oldName, $newName, $hookId)
 {
     $this->oldPath = $database->getPath($this->oldName = strtolower($oldName));
     $this->newPath = $database->getPath($this->newName = strtolower($newName));
     $this->hook = $hookId;
 }