/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Jwt/Header/PrivateHeaderParameter.php
59 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2021 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Jwt\Header; use Magento\Framework\Jwt\Jwe\JweHeaderParameterInterface; use Magento\Framework\Jwt\Jws\JwsHeaderParameterInterface; class PrivateHeaderParameter implements JwsHeaderParameterInterface, JweHeaderParameterInterface { /** * @var string */ private $name; /** * @var array|bool|int|float|string|null */ private $value; /** * @param string $name * @param array|bool|float|int|string|null $value */ public function __construct(string $name, $value) { $this->name = $name; $this->value = $value; } /** * @inheritDoc */ public function getName(): string { return $this->name; } /** * @inheritDoc */ public function getValue() { return $this->value; } /** * @inheritDoc */ public function getClass(): ?int { return self::CLASS_PRIVATE; } }