3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
-
7
6
declare (strict_types=1 );
8
7
9
8
namespace Magento \Directory \Setup \Patch \Data ;
10
9
11
10
use Magento \Directory \Setup \DataInstaller ;
12
- use Magento \Framework \ App \ ResourceConnection ;
11
+ use Magento \Directory \ Setup \ DataInstallerFactory ;
13
12
use Magento \Framework \Setup \ModuleDataSetupInterface ;
14
13
use Magento \Framework \Setup \Patch \DataPatchInterface ;
15
- use Magento \Framework \Setup \Patch \PatchVersionInterface ;
16
14
17
15
/**
18
16
* Add Bulgaria States
19
- *
20
- * Class AddDataForBulgaria
21
17
*/
22
- class AddDataForBulgaria implements DataPatchInterface, PatchVersionInterface
18
+ class AddDataForBulgaria implements DataPatchInterface
23
19
{
24
20
/**
25
21
* @var ModuleDataSetupInterface
26
22
*/
27
23
private $ moduleDataSetup ;
28
24
29
25
/**
30
- * @var \Magento\Directory\Setup\ DataInstallerFactory
26
+ * @var DataInstallerFactory
31
27
*/
32
28
private $ dataInstallerFactory ;
33
29
34
30
/**
35
31
* AddDataForBulgaria constructor.
36
32
*
37
33
* @param ModuleDataSetupInterface $moduleDataSetup
38
- * @param \Magento\Directory\Setup\ DataInstallerFactory $dataInstallerFactory
34
+ * @param DataInstallerFactory $dataInstallerFactory
39
35
*/
40
36
public function __construct (
41
37
ModuleDataSetupInterface $ moduleDataSetup ,
42
- \ Magento \ Directory \ Setup \ DataInstallerFactory $ dataInstallerFactory
38
+ DataInstallerFactory $ dataInstallerFactory
43
39
) {
44
40
$ this ->moduleDataSetup = $ moduleDataSetup ;
45
41
$ this ->dataInstallerFactory = $ dataInstallerFactory ;
@@ -56,6 +52,8 @@ public function apply()
56
52
$ this ->moduleDataSetup ->getConnection (),
57
53
$ this ->getDataForBulgaria ()
58
54
);
55
+
56
+ return $ this ;
59
57
}
60
58
61
59
/**
@@ -107,14 +105,6 @@ public static function getDependencies()
107
105
];
108
106
}
109
107
110
- /**
111
- * @inheritdoc
112
- */
113
- public static function getVersion ()
114
- {
115
- return '' ;
116
- }
117
-
118
108
/**
119
109
* @inheritdoc
120
110
*/
0 commit comments