Test Failed
Push — develop ( b13210...c32797 )
by Daniel
04:26
created

Page   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isDynamic() 0 3 1
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Content\Page;
4
5
use ApiPlatform\Core\Annotation\ApiProperty;
6
use Doctrine\ORM\Mapping as ORM;
7
use Symfony\Component\Serializer\Annotation\Groups;
8
9
/**
10
 * Class Page
11
 * @package Silverback\ApiComponentBundle\Entity\Content
12
 * @author Daniel West <[email protected]>
13
 * @ORM\Entity()
14
 */
15
class Page extends AbstractPage
16
{
17
    /**
18
     * @Groups({"default"})
19
     */
20
    protected $componentLocations;
21
22
    /**
23
     * @ApiProperty()
24
     * @Groups({"content","route"})
25
     */
26
    public function isDynamic(): bool
27
    {
28
        return false;
29
    }
30
}
31