Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReindexDefaultSource.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
17 {
21  private $operation;
22 
26  public function __construct(Operation $operation)
27  {
28  $this->operation = $operation;
29  }
30 
34  public function apply()
35  {
36  $this->operation->execute();
37 
38  return $this;
39  }
40 
44  public static function getDependencies()
45  {
46  return [
47  UpdateInventorySourceItem::class
48  ];
49  }
50 
54  public function getAliases()
55  {
56  return [];
57  }
58 }