3 declare(strict_types=1);
5 namespace Jose\Component\Encryption\Compression;
7 interface CompressionMethod
10 * Returns the name of the method.
12 public function name(): string;
15 * Compress the data. Throws an exception in case of failure.
17 * @param string $data The data to compress
19 public function compress(string $data): string;
22 * Uncompress the data. Throws an exception in case of failure.
24 * @param string $data The data to uncompress
26 public function uncompress(string $data): string;