Facebook   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
set() 0 1 ?
get() 0 1 ?
A setOgSiteName() 0 4 1
A getOgSiteName() 0 4 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