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

Added missing docblock in example #8074

Merged
merged 2 commits into from
Oct 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions src/guides/v2.3/extension-dev-guide/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,25 @@ use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Magento\Framework\Setup\Patch\PatchVersionInterface;

/**
* Class add customer example attribute to customer
*/
class AddCustomerExampleAttribute implements DataPatchInterface
{

/**
* @var ModuleDataSetupInterface
*/
private $moduleDataSetup;

/**
* @var CustomerSetupFactory
*/
private $customerSetupFactory;

/**
* @param ModuleDataSetupInterface $moduleDataSetup
* @param CustomerSetupFactory $customerSetupFactory
*/
public function __construct(
ModuleDataSetupInterface $moduleDataSetup,
CustomerSetupFactory $customerSetupFactory
Expand All @@ -73,6 +85,9 @@ class AddCustomerExampleAttribute implements DataPatchInterface
$this->customerSetupFactory = $customerSetupFactory;
}

/**
* @inheritdoc
*/
public function apply()
{
$customerSetup = $this->customerSetupFactory->create(['setup' => $this->moduleDataSetup]);
Expand All @@ -82,7 +97,7 @@ class AddCustomerExampleAttribute implements DataPatchInterface
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public static function getDependencies()
{
Expand All @@ -91,6 +106,9 @@ class AddCustomerExampleAttribute implements DataPatchInterface
];
}

/**
* @inheritdoc
*/
public function getAliases()
{
return [];
Expand Down