mautic / app /bundles /DashboardBundle /Event /WidgetFormEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\DashboardBundle\Event;
use Mautic\CoreBundle\Event\CommonEvent;
use Mautic\DashboardBundle\Entity\Widget;
class WidgetFormEvent extends CommonEvent
{
protected $form;
protected $type;
/**
* Set the widget type.
*
* @param string $type
*/
public function setType($type): void
{
$this->type = $type;
}
/**
* Get the widget type.
*
* @return string $type
*/
public function getType()
{
return $this->type;
}
/**
* Set the widget form.
*
* @param string $form
*/
public function setForm($form): void
{
$this->form = $form;
}
/**
* Returns the widget edit form.
*/
public function getForm()
{
return $this->form;
}
}