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

DependentDeleteElement::getRouteParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
c 1
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 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\Bundle\AdminBundle\Admin\CRUD;
11
12
use FSi\Bundle\AdminBundle\Admin\DependentElement;
13
use FSi\Bundle\AdminBundle\Admin\DependentElementImpl;
14
15
abstract class DependentDeleteElement extends GenericDeleteElement 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