Completed
Push — master ( 4e3396...61149e )
by Piotr
12s
created

GenericBatchElement   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRoute() 0 4 1
A getSuccessRoute() 0 4 1
A getSuccessRouteParameters() 0 4 1
A configureOptions() 0 3 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;
11
12
use FSi\Bundle\AdminBundle\Admin\AbstractElement;
13
use Symfony\Component\OptionsResolver\OptionsResolver;
14
15
abstract class GenericBatchElement extends AbstractElement implements BatchElement
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getRoute()
21
    {
22
        return 'fsi_admin_batch';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function configureOptions(OptionsResolver $resolver)
29
    {
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getSuccessRoute()
36
    {
37
        return 'fsi_admin';
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getSuccessRouteParameters()
44
    {
45
        return [];
46
    }
47
}
48