Completed
Push — 3.1 ( 7e9d2a...4fdd2b )
by Piotr
13:37 queued 13:35
created

HomePage   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\Structure;
6
7
use FSi\Bundle\AdminBundle\Doctrine\Admin\ResourceElement;
8
use FSi\Bundle\AdminBundle\Annotation as Admin;
9
use FSi\FixturesBundle\Entity;
10
11
/**
12
 * @Admin\Element
13
 */
14
class HomePage extends ResourceElement
15
{
16
    public function getId(): string
17
    {
18
        return 'home_page';
19
    }
20
21
    public function getKey(): string
22
    {
23
        return 'resources.homepage';
24
    }
25
26
    public function getClassName(): string
27
    {
28
        return Entity\Resource::class;
29
    }
30
}
31