public function getNextId() { $this->getLocker()->lock(); $nextID = $this->readLastId() + 1; $this->writeLastId($nextID); $this->getLocker()->release(); return $nextID; }