Passed
Push — develop ( 1b1d1e...d85927 )
by Daniel
05:53
created

Page::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Content;
4
5
use ApiPlatform\Core\Annotation\ApiResource;
6
use Doctrine\Common\Collections\ArrayCollection;
7
use Doctrine\ORM\Mapping as ORM;
8
use Silverback\ApiComponentBundle\Entity\Route\RouteAwareInterface;
9
use Silverback\ApiComponentBundle\Entity\Route\RouteAwareTrait;
10
use Symfony\Component\Serializer\Annotation\Groups;
11
12
/**
13
 * Class Page
14
 * @package Silverback\ApiComponentBundle\Entity\Content
15
 * @author Daniel West <[email protected]>
16
 * @ApiResource()
17
 * @ORM\Entity()
18
 */
19
class Page extends AbstractContent implements RouteAwareInterface
20
{
21
    use RouteAwareTrait;
22
    use PageTrait;
23
24
    /**
25
     * @Groups({"default"})
26
     */
27
    protected $componentLocations;
28
29 5
    public function __construct()
30
    {
31 5
        parent::__construct();
32 5
        $this->routes = new ArrayCollection;
33 5
    }
34
}
35