components-web-app /
api-components-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the Silverback API Components Bundle Project |
||
| 5 | * |
||
| 6 | * (c) Daniel West <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Silverback\ApiComponentsBundle\Event; |
||
| 15 | |||
| 16 | use Silverback\ApiComponentsBundle\Entity\Component\Form; |
||
| 17 | use Symfony\Contracts\EventDispatcher\Event; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @author Daniel West <[email protected]> |
||
| 21 | */ |
||
| 22 | class FormSuccessEvent extends Event |
||
| 23 | { |
||
| 24 | private Form $form; |
||
| 25 | |||
| 26 | public $result; |
||
| 27 | |||
| 28 | public function __construct(Form $form) |
||
| 29 | { |
||
| 30 | $this->form = $form; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getForm(): Form |
||
| 34 | { |
||
| 35 | return $this->form; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getFormData() |
||
| 39 | { |
||
| 40 | return $this->form->formView->getForm()->getData(); |
||
|
0 ignored issues
–
show
|
|||
| 41 | } |
||
| 42 | } |
||
| 43 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.