CoreFiles by mySites.guru
CompressionMethod.php30 lines, 709 bytes, from Joomla_6.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta1
md5
b5a0a6874dadcd9f6a3fd584116f3417
sha1
41016a07acae920e434b2f47732980e6cee4a227
sha256
20a419c5620d546a19426ba9025fa784a70f6473763e9c07dd659d506796efb0
<?php

declare(strict_types=1);

namespace Jose\Component\Encryption\Compression;

/**
 * @deprecated This class is deprecated and will be removed in v4.0. Compression is not recommended for JWE.
 */
interface CompressionMethod
{
    /**
     * Returns the name of the method.
     */
    public function name(): string;

    /**
     * Compress the data. Throws an exception in case of failure.
     *
     * @param string $data The data to compress
     */
    public function compress(string $data): string;

    /**
     * Uncompress the data. Throws an exception in case of failure.
     *
     * @param string $data The data to uncompress
     */
    public function uncompress(string $data): string;
}

The same content is in 118 releases, Joomla 5.2.0-alpha2 to 6.2.1. See them all, or every version of this file.