decrypt($encryptedData); } /** * @param $sessionId * @param $data * * @throws SessionException * * @return bool */ public function write($sessionId, $data): bool { $cryptedData = $this->encrypt($data); return parent::write($sessionId, $cryptedData); } }