CoreFiles by mySites.guru
AuthenticationExtension.php36 lines, 647 bytes, from Joomla_5.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta1
md5
499cc0e0493c3ac2901aec611309481b
sha1
8a93c95547a42103abc2997d0e764eeb772b5e98
sha256
8e6f7db30e97f9b07ee29f5bdca401de246002b5fe5cd5b45d1e782c27cf4798
<?php

declare(strict_types=1);

namespace Webauthn\AuthenticationExtensions;

use JsonSerializable;

class AuthenticationExtension implements JsonSerializable
{
    public function __construct(
        private readonly string $name,
        private readonly mixed $value
    ) {
    }

    public static function create(string $name, mixed $value): self
    {
        return new self($name, $value);
    }

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

    public function value(): mixed
    {
        return $this->value;
    }

    public function jsonSerialize(): mixed
    {
        return $this->value;
    }
}

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