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