CoreFiles by mySites.guru
Signature.php35 lines, 654 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
c02a01ab6839597cdc4cb0b289a6c04f
sha1
76e05d8afdbcf9bdf2843ca0fe6f3a8ddedb37ce
sha256
f4c2ec4e0d3ffb8ae0572f8b63856965b9157e35a75d13dfe781e4dd6a76299e
<?php
declare(strict_types=1);

namespace Lcobucci\JWT\Token;

final class Signature
{
    private string $hash;
    private string $encoded;

    public function __construct(string $hash, string $encoded)
    {
        $this->hash    = $hash;
        $this->encoded = $encoded;
    }

    /** @deprecated Deprecated since v4.3 */
    public static function fromEmptyData(): self
    {
        return new self('', '');
    }

    public function hash(): string
    {
        return $this->hash;
    }

    /**
     * Returns the encoded version of the signature
     */
    public function toString(): string
    {
        return $this->encoded;
    }
}

The same content is in 158 releases, Joomla 5.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.