Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Recurring Class Reference
Inheritance diagram for Recurring:
InstallSchemaInterface

Public Member Functions

 __construct (MetadataPool $metadataPool, ExternalFKSetup $externalFKSetup)
 
 install (SchemaSetupInterface $setup, ModuleContextInterface $context)
 

Protected Attributes

 $metadataPool
 
 $externalFKSetup
 

Detailed Description

Catalog recurring setup

Definition at line 18 of file Recurring.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( MetadataPool  $metadataPool,
ExternalFKSetup  $externalFKSetup 
)
Parameters
MetadataPool$metadataPool
ExternalFKSetup$externalFKSetup

Definition at line 34 of file Recurring.php.

37  {
38  $this->metadataPool = $metadataPool;
39  $this->externalFKSetup = $externalFKSetup;
40  }

Member Function Documentation

◆ install()

install ( SchemaSetupInterface  $setup,
ModuleContextInterface  $context 
)

{Installs DB schema for a module

Parameters
SchemaSetupInterface$setup
ModuleContextInterface$context
Returns
void
}

Implements InstallSchemaInterface.

Definition at line 45 of file Recurring.php.

46  {
48  $installer->startSetup();
49 
50  $metadata = $this->metadataPool->getMetadata(CategoryInterface::class);
51  $this->externalFKSetup->install(
52  $installer,
53  $metadata->getEntityTable(),
54  $metadata->getIdentifierField(),
55  'catalog_category_product',
56  'category_id'
57  );
58 
59  $installer->endSetup();
60  }
$setup
Definition: trigger.php:12

Field Documentation

◆ $externalFKSetup

$externalFKSetup
protected

Definition at line 28 of file Recurring.php.

◆ $metadataPool

$metadataPool
protected

Definition at line 23 of file Recurring.php.


The documentation for this class was generated from the following file: