Files
le-matelot/local/modules/Comment/Events/CommentComputeRatingEvent.php
2020-01-27 08:56:08 +01:00

86 lines
2.0 KiB
PHP

<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Comment\Events;
use Thelia\Core\Event\ActionEvent;
/**
* Class CommentComputeRatingEvent
* @package Comment\Events
* @author Julien Chanséaume <jchanseaume@openstudio.fr>
*/
class CommentComputeRatingEvent extends ActionEvent
{
/** @var string */
protected $ref;
/** @var int */
protected $refId;
/** @var float */
protected $rating;
/**
* @return string
*/
public function getRef()
{
return $this->ref;
}
/**
* @param string $ref
*/
public function setRef($ref)
{
$this->ref = $ref;
return $this;
}
/**
* @return int
*/
public function getRefId()
{
return $this->refId;
}
/**
* @param int $refId
*/
public function setRefId($refId)
{
$this->refId = $refId;
return $this;
}
/**
* @return float
*/
public function getRating()
{
return $this->rating;
}
/**
* @param float $rating
*/
public function setRating($rating)
{
$this->rating = $rating;
return $this;
}
}