Seo::setMetaDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace WebCMS\Entity;
4
5
use Doctrine\ORM\Mapping as orm;
6
7
/**
8
 * Basic SEO entity which contains basic SEO parameters.
9
 * @orm\mappedSuperclass
10
 * @author Tomáš Voslař <tomas.voslar at webcook.cz>
11
 */
12
abstract class Seo extends Entity
13
{
14
    /**
15
     * @orm\Column(type="boolean", nullable=true)
16
     */
17
    private $ownSeo;
18
19
    /**
20
     * @orm\Column(type="text", nullable=true)
21
     */
22
    private $metaTitle;
23
24
    /**
25
     * @orm\Column(type="text", nullable=true)
26
     */
27
    private $metaDescription;
28
29
    /**
30
     * @orm\Column(type="text", nullable=true)
31
     */
32
    private $metaKeywords;
33
34
    /* TODO */
35
    private $url;
36
37
    public function getMetaTitle()
38
    {
39
        return $this->metaTitle;
40
    }
41
42
    /**
43
     * @param string $metaTitle
44
     */
45
    public function setMetaTitle($metaTitle)
46
    {
47
        $this->metaTitle = $metaTitle;
48
    }
49
50
    public function getMetaDescription()
51
    {
52
        return $this->metaDescription;
53
    }
54
55
    /**
56
     * @param string $metaDescription
57
     */
58
    public function setMetaDescription($metaDescription)
59
    {
60
        $this->metaDescription = $metaDescription;
61
    }
62
63
    public function getMetaKeywords()
64
    {
65
        return $this->metaKeywords;
66
    }
67
68
    /**
69
     * @param string $metaKeywords
70
     */
71
    public function setMetaKeywords($metaKeywords)
72
    {
73
        $this->metaKeywords = $metaKeywords;
74
    }
75
}
76