コード例 #1
0
 public function __construct(JsonDatabase $db, $name, $id)
 {
     $this->path = $db->getPath($name);
     $this->hook = $id;
 }
コード例 #2
0
 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;
 }