| 1 | <?php |
||
| 18 | class UserFormDataEvent extends Event |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var FormInterface |
||
| 22 | */ |
||
| 23 | private $form; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var UserEntity |
||
| 27 | */ |
||
| 28 | private $userEntity; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param UserEntity $userEntity |
||
| 32 | * @param FormInterface $form |
||
| 33 | */ |
||
| 34 | public function __construct(UserEntity $userEntity, FormInterface $form) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param null $prefix |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function getFormData($prefix = null) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return UserEntity |
||
| 55 | */ |
||
| 56 | public function getUserEntity() |
||
| 60 | } |
||
| 61 |