PluginProbe
MBE eShip / trunk
MBE eShip vtrunk
2.8.1 trunk 1.0.0 1.1.0 1.1.3 1.2.1 1.2.2 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.7.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.0 2.1.1 2.1.2 2.2.1 All 37 releases
mail-boxes-etc / lib / Factories / CsvEntityFactory.php

CsvEntityFactory.php in MBE eShip trunk, at lib/Factories/CsvEntityFactory.php

21 lines 568 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Mbe_Csv_Entity_Model_Factory
4 {
5 protected $context;
6 protected $messageManager;
7 protected $packagesModelFactory;
8 protected $packagesProductModelFactory;
9
10 public function create($entityHelperClass)
11 {
12 switch ($entityHelperClass) {
13 case \Mbe_Shipping_Model_Csv_Package::class:
14 return new \Mbe_Shipping_Model_Csv_Package();
15 case \Mbe_Shipping_Model_Csv_Package_Product::class:
16 return new \Mbe_Shipping_Model_Csv_Package_Product();
17 case \Mbe_Shipping_Model_Csv_Shipping::class:
18 return new \Mbe_Shipping_Model_Csv_Shipping();
19 }
20 }
21 }