Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GenericElement.php
Go to the documentation of this file.
1 <?php
7 
18 abstract class GenericElement implements
20 {
26  private $type;
27 
33  private $name;
34 
41  public function __construct(string $name, string $type)
42  {
43  $this->type = $type;
44  $this->name = $name;
45  }
46 
50  public function getName()
51  {
52  return $this->name;
53  }
54 
58  public function getType()
59  {
60  return $this->type;
61  }
62 }
$type
Definition: item.phtml:13
if(!isset($_GET['name'])) $name
Definition: log.php:14