Completed
Pull Request — master (#304)
by Piotr
07:03
created

SubscriberDelete   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0
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\FixturesBundle\Admin;
11
12
use FSi\Bundle\AdminBundle\Doctrine\Admin\DeleteElement;
13
14
class SubscriberDelete extends DeleteElement
15
{
16
    public function getClassName()
17
    {
18
        return 'FSi\FixturesBundle\Entity\Subscriber';
19
    }
20
21
    public function getId()
22
    {
23
        return 'subscriber_delete';
24
    }
25
26
    public function getSuccessRoute()
27
    {
28
        return 'fsi_admin_list';
29
    }
30
31
    public function getSuccessRouteParameters()
32
    {
33
        return ['element' => 'subscriber'];
34
    }
35
}
36