Passed
Push — master ( abdb51...0ee754 )
by Dev
16:27 queued 01:19
created

PageMultiHostTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setHost() 0 5 1
A getHost() 0 3 1
1
<?php
2
3
namespace PiedWeb\CMSBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait PageMultiHostTrait
8
{
9
    /**
10
     * @ORM\Column(type="string", length=253, nullable=true)
11
     */
12
    protected $host;
13
14
    public function getHost(): ?string
15
    {
16
        return $this->host;
17
    }
18
19
    public function setHost($host): self
20
    {
21
        $this->host = $host;
22
23
        return $this;
24
    }
25
}
26