public function __construct($name, \Elgg\Database $db) { $this->db = $db; $this->name = $name; $this->workerId = md5(microtime() . getmypid()); }