Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SimpleConstructor.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
11 {
15  private $entityId;
16 
20  private $name;
21 
26  public function __construct(
27  int $entityId,
28  string $name
29  ) {
30  $this->entityId = $entityId;
31  $this->name = $name;
32  }
33 
37  public function getEntityId()
38  {
39  return $this->entityId;
40  }
41 
45  public function getName()
46  {
47  return $this->name;
48  }
49 }
if(!isset($_GET['name'])) $name
Definition: log.php:14