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

HomePage::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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