Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultDataMapper.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
14 {
18  private $map;
19 
23  public function __construct(array $map)
24  {
25  $this->map = $map;
26  }
27 
31  public function getMappedEnums(string $enumName) : array
32  {
33  return isset($this->map[$enumName]) ? $this->map[$enumName] : [];
34  }
35 }