Completed
Push — master ( 55dbed...4e3396 )
by Piotr
12s
created

DependentDeleteElement   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRouteParameters() 0 7 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\Doctrine\Admin;
11
12
use FSi\Bundle\AdminBundle\Admin\DependentElement;
13
use FSi\Bundle\AdminBundle\Admin\DependentElementImpl;
14
15
abstract class DependentDeleteElement extends DeleteElement implements DependentElement
16
{
17
    use DependentElementImpl;
18
19
    public function getRouteParameters()
20
    {
21
        return array_merge(
22
            parent::getRouteParameters(),
23
            [DependentElement::PARENT_REQUEST_PARAMETER => $this->getParentObjectId()]
24
        );
25
    }
26
}
27