Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultMapper.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 getMappedTypes(string $entityName) : array
32  {
33  return isset($this->map[$entityName]) ? $this->map[$entityName] : [];
34  }
35 }