/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/GraphQl/Config/Element/Enum.php
76 строк
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 2018 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\GraphQl\Config\Element; use Magento\Framework\GraphQl\Config\ConfigElementInterface; /** * Class representing 'enum' GraphQL config element. */ class Enum implements ConfigElementInterface { /** * @var string */ private $name; /** * @var array */ private $values; /** * @var string */ private $description; /** * @param string $name * @param EnumValue[] $values * @param string $description */ public function __construct( string $name, array $values, string $description ) { $this->name = $name; $this->values = $values; $this->description = $description; } /** * Get name. * * @return string */ public function getName() : string { return $this->name; } /** * Get an array of all possible values for the Enum. * * @return EnumValue[] */ public function getValues() : array { return $this->values; } /** * Return human-readable description of Enum. * * @return string */ public function getDescription() : string { return $this->description; } }