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