Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConstructorArgument.php
Go to the documentation of this file.
1 <?php
9 
11 {
15  private $name;
16 
20  private $type;
21 
25  private $isRequired;
26 
30  private $defaultValue;
31 
35  public function __construct(array $configuration)
36  {
37  $this->name = $configuration[0];
38  $this->type = $configuration[1];
39  $this->isRequired = $configuration[2];
40  $this->defaultValue = $configuration[3];
41  }
42 
48  public function getName()
49  {
50  return $this->name;
51  }
52 
58  public function getType()
59  {
60  return $this->type;
61  }
62 
68  public function isRequired()
69  {
70  return $this->isRequired;
71  }
72 
78  public function getDefaultValue()
79  {
80  return $this->defaultValue;
81  }
82 }
$configuration
Definition: index.php:33