Page   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 13
c 0
b 0
f 0
dl 0
loc 17
rs 10
ccs 6
cts 6
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace PiedWeb\CMSBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use PiedWeb\CMSBundle\Validator\Constraints\PageRendering;
7
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
8
9
/**
10
 * @ORM\MappedSuperclass
11
 * @ORM\HasLifecycleCallbacks
12
 * @UniqueEntity(
13
 *     fields={"host", "slug"},
14
 *     errorPath="slug",
15
 *     message="page.slug.already_used"
16
 * )
17
 * @PageRendering
18
 */
19
class Page implements PageInterface
20
{
21
    use IdTrait;
22
    use PageExtendedMainContentTrait;
23
    use PageExtendedTrait;
24
    use PageI18nTrait;
25
    use PageImageTrait;
26
    use PageMultiHostTrait;
27 3
    use PageRedirectionTrait;
28
    use PageTrait;
29 3
30 3
    public function __construct()
31 3
    {
32 3
        $this->__constructPage();
33 3
        $this->__constructExtended();
34
        $this->__constructImage();
35
        $this->__constructI18n();
36
    }
37
}
38