Debian Codegraph @

lib/3rdParty/composer/web-token/jwt-library/Encryption/Compression/CompressionMethod.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Encryption\Compression;
6
7 /**
8 * @deprecated This class is deprecated and will be removed in v4.0. Compression is not recommended for JWE.
9 */
10 interface CompressionMethod
11 {
12 /**
13 * Returns the name of the method.
14 */
15 public function name(): string;
16
17 /**
18 * Compress the data. Throws an exception in case of failure.
19 *
20 * @param string $data The data to compress
21 */
22 public function compress(string $data): string;
23
24 /**
25 * Uncompress the data. Throws an exception in case of failure.
26 *
27 * @param string $data The data to uncompress
28 */
29 public function uncompress(string $data): string;
30 }