Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit e06073f

Browse files
authored
Merge pull request #8074 from mage2pratik/patch-58
Added missing docblock in example
2 parents f76c131 + 0939df3 commit e06073f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/guides/v2.3/extension-dev-guide/attributes.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,25 @@ use Magento\Framework\Setup\ModuleDataSetupInterface;
5858
use Magento\Framework\Setup\Patch\DataPatchInterface;
5959
use Magento\Framework\Setup\Patch\PatchVersionInterface;
6060

61+
/**
62+
* Class add customer example attribute to customer
63+
*/
6164
class AddCustomerExampleAttribute implements DataPatchInterface
6265
{
63-
66+
/**
67+
* @var ModuleDataSetupInterface
68+
*/
6469
private $moduleDataSetup;
6570

71+
/**
72+
* @var CustomerSetupFactory
73+
*/
6674
private $customerSetupFactory;
6775

76+
/**
77+
* @param ModuleDataSetupInterface $moduleDataSetup
78+
* @param CustomerSetupFactory $customerSetupFactory
79+
*/
6880
public function __construct(
6981
ModuleDataSetupInterface $moduleDataSetup,
7082
CustomerSetupFactory $customerSetupFactory
@@ -73,6 +85,9 @@ class AddCustomerExampleAttribute implements DataPatchInterface
7385
$this->customerSetupFactory = $customerSetupFactory;
7486
}
7587

88+
/**
89+
* @inheritdoc
90+
*/
7691
public function apply()
7792
{
7893
$customerSetup = $this->customerSetupFactory->create(['setup' => $this->moduleDataSetup]);
@@ -82,7 +97,7 @@ class AddCustomerExampleAttribute implements DataPatchInterface
8297
}
8398

8499
/**
85-
* {@inheritdoc}
100+
* @inheritdoc
86101
*/
87102
public static function getDependencies()
88103
{
@@ -91,6 +106,9 @@ class AddCustomerExampleAttribute implements DataPatchInterface
91106
];
92107
}
93108

109+
/**
110+
* @inheritdoc
111+
*/
94112
public function getAliases()
95113
{
96114
return [];

0 commit comments

Comments
 (0)