Facebook::set()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
nc 1
1
<?php
2
3
namespace SeoHelper\MetaData;
4
5
/**
6
 * @method BaseMetaData addOgTitle(string $ogTitle)
7
 * @method BaseMetaData setOgTitle(string $ogTitle)
8
 * @method BaseMetaData resetOgTitle(string|null $ogTitle = null)
9
 * @method BaseMetaData addOgDescription(string $ogDescription)
10
 * @method BaseMetaData setOgDescription(string $ogDescription)
11
 * @method BaseMetaData resetOgDescription(string|null $ogDescription = null)
12
 * @method BaseMetaData setOgType(string $ogType)
13
 * @method BaseMetaData setOgUrl(string $ogUrl)
14
 * @method BaseMetaData addOgImage(string $image)
15
 * @method BaseMetaData setOgImage(string $image)
16
 * @method BaseMetaData resetOgImage(string|null $image = null)
17
 * @method BaseMetaData setFbAdmins(string $fbAdmins)
18
 */
19
trait Facebook
20
{
21
    /**
22
     * @param string $key
23
     * @param string|array $value
24
     */
25
    abstract public function set($key, $value);
26
27
    /**
28
     * @param string|null $key
29
     */
30
    abstract public function get($key = null);
31
32 3
    public function setOgSiteName($siteName)
33
    {
34 3
        return $this->set('og:site_name', $siteName);
35
    }
36
37 3
    public function getOgSiteName()
38
    {
39 3
        return $this->get('og:site_name');
40
    }
41
}
42