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

GenericBatchElement::setDefaultOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 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