Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Enum.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
11 
15 class Enum implements ConfigElementInterface
16 {
20  private $name;
21 
25  private $values;
26 
30  private $description;
31 
37  public function __construct(
38  string $name,
39  array $values,
40  string $description = ""
41  ) {
42  $this->name = $name;
43  $this->values = $values;
44  $this->description = $description;
45  }
46 
52  public function getName() : string
53  {
54  return $this->name;
55  }
56 
62  public function getValues() : array
63  {
64  return $this->values;
65  }
66 
72  public function getDescription() : string
73  {
74  return $this->description;
75  }
76 }
$values
Definition: options.phtml:88
__construct(string $name, array $values, string $description="")
Definition: Enum.php:37
if(!isset($_GET['name'])) $name
Definition: log.php:14