CoreFiles by mySites.guru
CompressionMethod.php27 lines, 592 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
e0dc48bc9404ed3e74865a6b1d590eef
sha1
691ae52b4429a178e7b2445862c44bf1acc1a650
sha256
03a04f017198a2b70c76052ff97fae7dd44a0626b4d86e0e56d47c3d810c3a34
<?php

declare(strict_types=1);

namespace Jose\Component\Encryption\Compression;

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 17 releases, Joomla 5.1.0-beta1 to 5.2.0-alpha1. See them all, or every version of this file.