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