DependentCRUDElement   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

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