. */ /* */ /*************************************************************************************/ namespace Comment\Events; use Comment\Model\Comment; use Thelia\Core\Event\ActionEvent; /** * * This class contains all Comment events identifiers used by Comment Core * * @author Michaël Espeche * @author Julien Chanséaume * */ class CommentEvent extends ActionEvent { /** @var int */ protected $id = null; /** @var Comment */ protected $comment = null; /** * Constructor */ public function __construct() { } /** * @return int */ public function getId() { return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; return $this; } /** * @return Comment|null */ public function getComment() { return $this->comment; } /** * @param Comment $comment */ public function setComment(Comment $comment) { $this->comment = $comment; return $this; } }