Completed
Pull Request — master (#244)
by Łukasz
11:47
created

FormSubmitHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPreSubmitEventName() 0 4 1
A getPostSubmitEventName() 0 4 1
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace FSi\Bundle\AdminBundle\Admin\CRUD\Context\Request;
11
12
use FSi\Bundle\AdminBundle\Admin\Context\Request\AbstractFormSubmitHandler;
13
use FSi\Bundle\AdminBundle\Event\FormEvents;
14
15
class FormSubmitHandler extends AbstractFormSubmitHandler
16
{
17
    /**
18
     * @return string
19
     */
20
    protected function getPreSubmitEventName()
21
    {
22
        return FormEvents::FORM_REQUEST_PRE_SUBMIT;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    protected function getPostSubmitEventName()
29
    {
30
        return FormEvents::FORM_REQUEST_POST_SUBMIT;
31
    }
32
}
33