Seo   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 51
ccs 0
cts 6
cp 0
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTitle() 0 4 2
A setDescription() 0 4 2
1
<?php
2
3
namespace A17\Twill\Http\Controllers\Front\Helpers;
4
5
class Seo
6
{
7
    /**
8
     * @var string|null
9
     */
10
    public $title;
11
12
    /**
13
     * @var string|null
14
     */
15
    public $description;
16
17
    /**
18
     * @var bool
19
     */
20
    public $nofollow = false;
21
22
    /**
23
     * @var \A17\Twill\Models\Media|null
24
     */
25
    public $image;
26
27
    /**
28
     * @var int
29
     */
30
    public $width;
31
32
    /**
33
     * @var int
34
     */
35
    public $height;
36
37
    /**
38
     * @param string $title
39
     * @return void
40
     */
41
    public function setTitle($title)
42
    {
43
        if (!empty($title)) {
44
            $this->title = $title;
45
        }
46
    }
47
48
    /**
49
     * @param string $description
50
     * @return void
51
     */
52
    public function setDescription($description)
53
    {
54
        if (!empty($description)) {
55
            $this->description = $description;
56
        }
57
    }
58
}
59