pdm = new PersistentDataManager(); } public function getById(int $userConfirmationId): ?UserPasswordResetter { return $this->pdm->selectFromDbById($userConfirmationId, UserPasswordResetter::class); } public function getByToken(string $token): ?UserPasswordResetter { $select = new Select(\Container::$dbConnection); $select->where('token', '=', $token); return $this->pdm->selectFromDb($select, UserPasswordResetter::class); } public function getByUser(User $user): ?UserPasswordResetter { $select = new Select(\Container::$dbConnection); $select->where('user_id', '=', $user->getId()); return $this->pdm->selectFromDb($select, UserPasswordResetter::class); } }