Completed
Pull Request — 3.1 (#348)
by Piotr
09:36 queued 07:40
created

AboutUsPage   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getKey() 0 4 1
A getClassName() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FSi\FixturesBundle\Admin;
6
7
use FSi\Bundle\AdminBundle\Doctrine\Admin\ResourceElement;
8
use FSi\FixturesBundle\Entity;
9
10
class AboutUsPage extends ResourceElement
11
{
12
    public function getId(): string
13
    {
14
        return 'about_us_page';
15
    }
16
17
    public function getKey(): string
18
    {
19
        return 'resources.about_us';
20
    }
21
22
    public function getClassName(): string
23
    {
24
        return Entity\Resource::class;
25
    }
26
}
27