original_string: protected function getTotalReviewsProduct(array $product)
      {
          $options = array(
              'status' => 1,
              'count' => true,
              'user_status' => 1,
              'product_id' => $product['product_id']
          );
  
          return (int) $this->review->getList($options);
      }
code: protected function getTotalReviewsProduct(array $product)
      {
          $options = array(
              'status' => 1,
              'count' => true,
              'user_status' => 1,
              'product_id' => $product['product_id']
          );
  
          return (int) $this->review->getList($options);
      }
code_tokens: protected function getTotalReviewsProduct ( array $ product ) { $ options = array ( 'status' => 1 , 'count' => true , 'user_status' => 1 , 'product_id' => $ product [ 'product_id' ] ) ; return ( int ) $ this -> review -> getList ( $ options ) ; }
docstring: Returns a total number of reviews for the product
  @param array $product
  @return integer
docstring_tokens: Returns a total number of reviews for the product