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

PageMultiHostTrait::setHost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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