Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Option.php
Go to the documentation of this file.
1 <?php
7 
26 {
30  protected function _construct()
31  {
32  $this->_init(\Magento\Review\Model\ResourceModel\Rating\Option::class);
33  }
34 
38  public function addVote()
39  {
40  $this->getResource()->addVote($this);
41  return $this;
42  }
43 
48  public function setId($id)
49  {
50  $this->setOptionId($id);
51  return $this;
52  }
53 }
$id
Definition: fieldset.phtml:14