Completed
Pull Request — master (#8)
by Nicolas
28:01
created

SeoTrait::getSeoDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Smart\ContentBundle\Entity\Traits;
4
5
use Doctrine\Orm\Mapping as ORM;
6
7
trait SeoTrait
8
{
9
    /**
10
     * @var string
11
     *
12
     * @ORM\Column(name="url", type="string", length=255)
13
     */
14
    protected $url;
15
16
    /**
17
     * @var string
18
     *
19
     * @ORM\Column(name="seo_description", type="text", nullable=true)
20
     */
21
    protected $seoDescription;
22
23
    /**
24
     * @var string
25
     *
26
     * @ORM\Column(name="custom_meta_tags", type="text", nullable=true)
27
     */
28
    protected $customMetaTags;
29
30
    /**
31
     * @return string
32
     */
33
    public function getUrl()
34
    {
35
        return $this->url;
36
    }
37
38
    /**
39
     * @param string $url
40
     *
41
     * @return $this
42
     */
43 1
    public function setUrl($url)
44
    {
45 1
        $this->url = $url;
46
47 1
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getSeoDescription()
54
    {
55
        return $this->seoDescription;
56
    }
57
58
    /**
59
     * @param string $description
60
     *
61
     * @return $this
62
     */
63
    public function setSeoDescription($description)
64
    {
65
        $this->seoDescription = $description;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getCustomMetaTags()
74
    {
75
        return $this->customMetaTags;
76
    }
77
78
    /**
79
     * @param string $customMetaTags
80
     *
81
     * @return $this
82
     */
83
    public function setCustomMetaTags($customMetaTags)
84
    {
85
        $this->customMetaTags = $customMetaTags;
86
87
        return $this;
88
    }
89
}
90