forked from romanzipp/Laravel-SEO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Meta.php
42 lines (32 loc) · 847 Bytes
/
Meta.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
<?php
namespace romanzipp\Seo\Structs;
/**
* @see https://github.com/joshbuchea/HEAD#meta
*/
class Meta extends Struct
{
protected function tag(): string
{
return 'meta';
}
public function name($value = null, bool $escape = true): Struct
{
$this->addAttribute('name', $value, $escape);
return $this;
}
public function httpEquiv($value = null, bool $escape = true): Struct
{
$this->addAttribute('http-equiv', $value, $escape);
return $this;
}
public function content($value = null, bool $escape = true): Struct
{
$this->addAttribute('content', $value, $escape);
return $this;
}
public function value($value, bool $escape = true): Struct
{
$this->addAttribute('value', $value, $escape);
return $this;
}
}