| 1 | <?php |
||
| 17 | class UserFormAwareEvent extends Event |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var FormInterface |
||
| 21 | */ |
||
| 22 | private $form; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $templates = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param FormInterface $form |
||
| 31 | */ |
||
| 32 | public function __construct(FormInterface $form) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function getFormData() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param FormInterface|string|int $child |
||
| 47 | * @param string|null $type |
||
| 48 | * @param array $options |
||
| 49 | * @return self - copy fluent interface of form class |
||
| 50 | */ |
||
| 51 | public function formAdd($child, $type = null, array $options = []) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $template |
||
| 60 | * @return self - copy fluent interface of form class |
||
| 61 | */ |
||
| 62 | public function addTemplate($template) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | public function getTemplates() |
||
| 78 | } |
||
| 79 |