Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
GraphQl
Config
Element
EnumValue.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Framework\GraphQl\Config\Element
;
9
10
use
Magento\Framework\GraphQl\Config\ConfigElementInterface
;
11
15
class
EnumValue
implements
ConfigElementInterface
16
{
20
private
$name;
21
25
private
$value;
26
30
private
$description;
31
37
public
function
__construct
(
string
$name,
string
$value,
string
$description =
''
)
38
{
39
$this->
name
=
$name
;
40
$this->
value
= $value;
41
$this->description = $description;
42
}
43
49
public
function
getName
(): string
50
{
51
return
$this->name;
52
}
53
59
public
function
getValue
() : string
60
{
61
return
$this->value;
62
}
63
69
public
function
getDescription
() : string
70
{
71
return
$this->description;
72
}
73
}
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
Magento\Framework\GraphQl\Config\Element\EnumValue\getValue
getValue()
Definition:
EnumValue.php:59
Magento\Framework\GraphQl\Config\Element\EnumValue\__construct
__construct(string $name, string $value, string $description='')
Definition:
EnumValue.php:37
Magento\Framework\GraphQl\Config\Element\EnumValue\getName
getName()
Definition:
EnumValue.php:49
Magento\Framework\GraphQl\Config\Element\EnumValue
Definition:
EnumValue.php:15
name
Magento\Framework\GraphQl\Config\ConfigElementInterface
Definition:
ConfigElementInterface.php:13
Magento\Framework\GraphQl\Config\Element
Definition:
Argument.php:8
Magento\Framework\GraphQl\Config\Element\EnumValue\getDescription
getDescription()
Definition:
EnumValue.php:69
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14