Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Summary.php
Go to the documentation of this file.
1 <?php
7 
17 {
25  public function __construct(
26  \Magento\Framework\Model\Context $context,
27  \Magento\Framework\Registry $registry,
29  \Magento\Review\Model\ResourceModel\Review\Summary\Collection $resourceCollection,
30  array $data = []
31  ) {
32  parent::__construct($context, $registry, $resource, $resourceCollection, $data);
33  }
34 
40  public function getEntityPkValue()
41  {
42  return $this->_getData('entity_pk_value');
43  }
44 
50  public function getRatingSummary()
51  {
52  return $this->_getData('rating_summary');
53  }
54 
60  public function getReviewsCount()
61  {
62  return $this->_getData('reviews_count');
63  }
64 }
$resource
Definition: bulk.php:12
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Review\Model\ResourceModel\Review\Summary $resource, \Magento\Review\Model\ResourceModel\Review\Summary\Collection $resourceCollection, array $data=[])
Definition: Summary.php:25