Completed
Pull Request — 3.1 (#348)
by Piotr
20:24
created

MyDependentList   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 27
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getParentId() 0 3 1
A initDataGrid() 0 3 1
A initDataSource() 0 3 1
A getDataIndexer() 0 3 1
A saveDataGrid() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FSi\Bundle\AdminBundle\spec\fixtures;
6
7
use FSi\Bundle\AdminBundle\Admin\CRUD\DependentListElement;
8
use FSi\Component\DataGrid\DataGridFactoryInterface;
9
use FSi\Component\DataGrid\DataGridInterface;
10
use FSi\Component\DataIndexer\DataIndexerInterface;
11
use FSi\Component\DataSource\DataSourceFactoryInterface;
12
use FSi\Component\DataSource\DataSourceInterface;
13
14
class MyDependentList extends DependentListElement
15
{
16
    public function getId(): string
17
    {
18
        return 'my_dependent_list';
19
    }
20
21
    public function getParentId(): string
22
    {
23
    }
24
25
    protected function initDataGrid(DataGridFactoryInterface $factory): DataGridInterface
26
    {
27
    }
28
29
    protected function initDataSource(DataSourceFactoryInterface $factory): DataSourceInterface
30
    {
31
    }
32
33
    public function getDataIndexer(): DataIndexerInterface
34
    {
35
    }
36
37
    public function saveDataGrid(): void
38
    {
39
    }
40
}
41