Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Entity.php
Go to the documentation of this file.
1 <?php
7 
18 {
22  protected function _construct()
23  {
24  $this->_init(\Magento\Review\Model\ResourceModel\Rating\Entity::class);
25  }
26 
31  public function getIdByCode($entityCode)
32  {
33  return $this->_getResource()->getIdByCode($entityCode);
34  }
35 }