This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
src/guides/v2.3/extension-dev-guide Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,25 @@ use Magento\Framework\Setup\ModuleDataSetupInterface;
58
58
use Magento\Framework\Setup\Patch\DataPatchInterface;
59
59
use Magento\Framework\Setup\Patch\PatchVersionInterface;
60
60
61
+ /**
62
+ * Class add customer example attribute to customer
63
+ */
61
64
class AddCustomerExampleAttribute implements DataPatchInterface
62
65
{
63
-
66
+ /**
67
+ * @var ModuleDataSetupInterface
68
+ */
64
69
private $moduleDataSetup;
65
70
71
+ /**
72
+ * @var CustomerSetupFactory
73
+ */
66
74
private $customerSetupFactory;
67
75
76
+ /**
77
+ * @param ModuleDataSetupInterface $moduleDataSetup
78
+ * @param CustomerSetupFactory $customerSetupFactory
79
+ */
68
80
public function __construct(
69
81
ModuleDataSetupInterface $moduleDataSetup,
70
82
CustomerSetupFactory $customerSetupFactory
@@ -73,6 +85,9 @@ class AddCustomerExampleAttribute implements DataPatchInterface
73
85
$this->customerSetupFactory = $customerSetupFactory;
74
86
}
75
87
88
+ /**
89
+ * @inheritdoc
90
+ */
76
91
public function apply()
77
92
{
78
93
$customerSetup = $this->customerSetupFactory->create(['setup' => $this->moduleDataSetup]);
@@ -82,7 +97,7 @@ class AddCustomerExampleAttribute implements DataPatchInterface
82
97
}
83
98
84
99
/**
85
- * { @inheritdoc}
100
+ * @inheritdoc
86
101
*/
87
102
public static function getDependencies()
88
103
{
@@ -91,6 +106,9 @@ class AddCustomerExampleAttribute implements DataPatchInterface
91
106
];
92
107
}
93
108
109
+ /**
110
+ * @inheritdoc
111
+ */
94
112
public function getAliases()
95
113
{
96
114
return [];
You can’t perform that action at this time.
0 commit comments