<?php

namespace humhub\modules\polls\widgets;

use humhub\components\Widget;

/**
 * ResetButton for closing polls per poll dropdown menu
 *
 * This Widget will used by the Poll Modul in Events.php
 *
 * @package humhub.modules.polls.widgets
 * @since 0.5
 * @author Luke
 */
class ResetButton extends Widget
{
    public $poll;

    public function run()
    {
        return $this->render('resetButton', ['poll' => $this->poll]);
    }

}
