85d2bf38a2cc20e0fee61bb00920c2c19baa6b78
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Encryption\Compression;
6
7 interface CompressionMethod
8 {
9 /**
10 * Returns the name of the method.
11 */
12 public function name(): string;
13
14 /**
15 * Compress the data. Throws an exception in case of failure.
16 *
17 * @param string $data The data to compress
18 */
19 public function compress(string $data): string;
20
21 /**
22 * Uncompress the data. Throws an exception in case of failure.
23 *
24 * @param string $data The data to uncompress
25 */
26 public function uncompress(string $data): string;
27 }