mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-29 05:26:13 +00:00
37 lines
718 B
PHP
37 lines
718 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Form\Event;
|
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
|
|
class CustomizeFormEvent extends \Symfony\Component\EventDispatcher\Event
|
|
{
|
|
const NAME = 'chill_main.customize_form';
|
|
|
|
protected string $type;
|
|
|
|
protected FormBuilderInterface $builder;
|
|
|
|
public function __construct(string $type, FormBuilderInterface $builder)
|
|
{
|
|
$this->type = $type;
|
|
$this->builder = $builder;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType(): string
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return FormBuilderInterface
|
|
*/
|
|
public function getBuilder(): FormBuilderInterface
|
|
{
|
|
return $this->builder;
|
|
}
|
|
}
|