protected function readLastId() { $path = $this->getLastIdPath(); return file_exists($path) ? (int) file_get_contents($path) : 0 ?: 1000000; }