Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ClearSampleDataState.php
Go to the documentation of this file.
1 <?php
8 
12 
18 {
22  private $moduleDataSetup;
23 
27  private $state;
28 
34  public function __construct(
35  \Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup,
36  \Magento\Framework\Setup\SampleData\State $state
37  ) {
38  $this->moduleDataSetup = $moduleDataSetup;
39  $this->state = $state;
40  }
41 
45  public function apply()
46  {
47  $this->state->clearState();
48  }
49 
53  public static function getDependencies()
54  {
55  return [];
56  }
57 
61  public static function getVersion()
62  {
63  return '2.0.0';
64  }
65 
69  public function getAliases()
70  {
71  return [];
72  }
73 }
__construct(\Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup, \Magento\Framework\Setup\SampleData\State $state)