/**
  * Reports configurable product size to the database reporting_counts table
  *
  * @return void
  */
 protected function reportConfigurableProductsSize()
 {
     $configurableCount = $this->configurableManagement->getCount();
     /** @var \Magento\NewRelicReporting\Model\Counts $model */
     $model = $this->countsFactory->create()->load(Config::CONFIGURABLE_COUNT, 'type');
     $this->updateCount($configurableCount, $model, Config::CONFIGURABLE_COUNT);
 }
示例#2
0
 /**
  * Get count of configurable products
  *
  * @return int
  */
 public function getConfigurableCount()
 {
     $count = $this->configurableManagement->getCount();
     return (int) $count;
 }