Seo   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 64
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getMetaTitle() 0 4 1
A setMetaTitle() 0 4 1
A getMetaDescription() 0 4 1
A setMetaDescription() 0 4 1
A getMetaKeywords() 0 4 1
A setMetaKeywords() 0 4 1
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