/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/GraphQl/Config/Element/EnumValue.php
90 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2018 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\GraphQl\Config\Element; use Magento\Framework\GraphQl\Config\ConfigElementInterface; /** * Describes a value for an enum type. */ class EnumValue implements ConfigElementInterface { /** * @var string */ private $name; /** * @var string */ private $value; /** * @var string */ private $description; /** * @var string */ private $deprecationReason; /** * @param string $name * @param string $value * @param string $description * @param string $deprecationReason */ public function __construct(string $name, string $value, string $description = '', string $deprecationReason = '') { $this->name = $name; $this->value = $value; $this->description = $description; $this->deprecationReason = $deprecationReason; } /** * Get the enum value's name/key. * * @return string */ public function getName(): string { return $this->name; } /** * Get the enum value's value. * * @return string */ public function getValue() : string { return $this->value; } /** * Get the enum value's description. * * @return string */ public function getDescription() : string { return $this->description; } /** * Get the enum value's deprecatedReason. * * @return string */ public function getDeprecatedReason() : string { return $this->deprecationReason; } }