$this->legacySession = $statement->fetchSingleObject(LegacySession::class);
if (!$this->legacySession) {
- $this->createLegacySession();
+ $this->legacySession = $this->createLegacySession();
}
return true;
}
if (!$this->legacySession) {
- $this->createLegacySession();
+ $this->legacySession = $this->createLegacySession();
}
}
- private function createLegacySession()
+ private function createLegacySession(): LegacySession
{
$spiderID = $this->getSpiderID(UserUtil::getUserAgent());
'spiderID' => $spiderID,
];
- $this->legacySession = SessionEditor::create($sessionData);
+ return SessionEditor::create($sessionData);
}
/**