mautic / app /bundles /FormBundle /Event /FormFieldEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
raw
history blame contribute delete
561 Bytes
<?php
declare(strict_types=1);
namespace Mautic\FormBundle\Event;
use Mautic\FormBundle\Entity\Field;
use Symfony\Contracts\EventDispatcher\Event;
final class FormFieldEvent extends Event
{
public function __construct(
private Field $entity,
private bool $isNew = false
) {
}
public function getField(): Field
{
return $this->entity;
}
public function isNew(): bool
{
return $this->isNew;
}
public function setField(Field $field): void
{
$this->entity = $field;
}
}