Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
InitializeDefaultSourceForShipments.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
13 
18 {
22  private $moduleDataSetup;
23 
27  private $assignDefaultSourceToShipments;
28 
33  public function __construct(
34  ModuleDataSetupInterface $moduleDataSetup,
35  AssignDefaultSourceToShipments $assignDefaultSourceToShipments
36  ) {
37  $this->moduleDataSetup = $moduleDataSetup;
38  $this->assignDefaultSourceToShipments = $assignDefaultSourceToShipments;
39  }
40 
44  public function apply()
45  {
46  $this->assignDefaultSourceToShipments->execute($this->moduleDataSetup);
47 
48  return $this;
49  }
50 
54  public static function getDependencies()
55  {
56  return [];
57  }
58 
62  public function getAliases()
63  {
64  return [];
65  }
66 }
__construct(ModuleDataSetupInterface $moduleDataSetup, AssignDefaultSourceToShipments $assignDefaultSourceToShipments)