Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
data_patch_classes.php
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile - as of namespace absence
8 
10 {
14  public static function getDependencies()
15  {
16  return [];
17  }
18 
22  public function getAliases()
23  {
24  return [];
25  }
26 
30  public function apply()
31  {
32  }
33 }
34 
35 class SomeDataPatch implements
38 {
42  public static function getDependencies()
43  {
44  return [
45  OtherDataPatch::class,
46  ];
47  }
48 
52  public function getAliases()
53  {
54  return [];
55  }
56 
60  public function apply()
61  {
62  return $this;
63  }
64 
68  public static function getVersion()
69  {
70  return '2.0.0';
71  }
72 }
73 
77 {
78 
82  public static function getDependencies()
83  {
84  return [];
85  }
86 
90  public function getAliases()
91  {
92  return [];
93  }
94 
98  public function apply()
99  {
100  }
101 }
102 
103 class RevertableDataPatch implements
106 {
110  public static function getDependencies()
111  {
112  return [];
113  }
114 
118  public function getAliases()
119  {
120  return [];
121  }
122 
126  public function apply()
127  {
128  }
129 
133  public function revert()
134  {
135  }
136 }
static getDependencies()