Completed
Pull Request — 2.1 (#289)
by Piotr
02:46
created

GenericBatchElement   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 41
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getRoute() 0 4 1
A setDefaultOptions() 0 3 1
A configureOptions() 0 4 1
A getSuccessRoute() 0 4 1
A getSuccessRouteParameters() 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;
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 setDefaultOptions(OptionsResolver $resolver)
29
    {
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function configureOptions(OptionsResolver $resolver)
36
    {
37
        $this->setDefaultOptions($resolver);
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getSuccessRoute()
44
    {
45
        return 'fsi_admin';
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function getSuccessRouteParameters()
52
    {
53
        return [];
54
    }
55
}
56