Completed
Pull Request — 2.1 (#242)
by Łukasz
03:04
created

DependentDisplayElement   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
c 0
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\Admin\Display;
11
12
use FSi\Bundle\AdminBundle\Admin\DependentElement;
13
use FSi\Bundle\AdminBundle\Admin\DependentElementImpl;
14
15
abstract class DependentDisplayElement extends GenericDisplayElement implements DependentElement
16
{
17
    use DependentElementImpl;
18
    /**
19
     * {@inheritdoc}
20
     */
21
22
    public function getRouteParameters()
23
    {
24
        return array_merge(
25
            parent::getRouteParameters(),
26
            [DependentElement::REQUEST_PARENT_PARAMETER => $this->getParentObjectId()]
27
        );
28
    }
29
}
30