Log in
Model

Rating

Magento\Review\Model\Rating

What it does

This class manages product rating functionality in Magento 2, allowing merchants to define rating criteria (like Quality, Value, Price) that customers can vote on.

Developers use this model to create or update rating votes, retrieve rating options for display, get rating summaries for products or reviews, and manage the rating entity system that powers the review voting mechanism.

Public Methods

  • addOptionVote()
  • updateOptionVote()
  • getOptions()
  • getEntitySummary()
  • getReviewSummary()
  • getEntityIdByCode()
  • getIdentities()