__construct() public method

AbstractAttributeData constructor.
public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, string $entityType = null )
$resource Magento\Framework\App\ResourceConnection Resource Connection
$storeManager Magento\Store\Model\StoreManagerInterface Store Manager
$metadataPool Magento\Framework\EntityManager\MetadataPool Entity Metadata Pool
$entityType string Entity Type
Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param ResourceConnection    $resource           Database adpater.
  * @param StoreManagerInterface $storeManager       Store manager.
  * @param MetadataPool          $metadataPool       Metadata Pool.
  * @param ProductType           $catalogProductType Product type.
  * @param string                $entityType         Product entity type.
  */
 public function __construct(ResourceConnection $resource, StoreManagerInterface $storeManager, MetadataPool $metadataPool, ProductType $catalogProductType, $entityType = ProductInterface::class)
 {
     parent::__construct($resource, $storeManager, $metadataPool, $entityType);
     $this->catalogProductType = $catalogProductType;
 }