Completed
Push — master ( 82ed85...e127d4 )
by Pavel
03:01
created

SeoPageBuilder::getSeoPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Bankiru\Seo\Page;
4
5
class SeoPageBuilder extends SeoPage implements PageBuilder
6
{
7
    /** {@inheritdoc} */
8 3
    public function setMeta(array $meta)
9
    {
10 3
        $this->meta = $meta;
11
12 3
        return $this;
13
    }
14
15
    /** {@inheritdoc} */
16 13
    public function setTitle($title)
17
    {
18 13
        $this->title = $title;
19
20 13
        return $this;
21
    }
22
23
    /** {@inheritdoc} */
24 3
    public function setCanonicalLink($canonical = null)
25
    {
26 3
        $this->canonical = $canonical;
27
28 3
        return $this;
29
    }
30
31
    /** {@inheritdoc} */
32 2
    public function setHtmlAttributes(array $htmlAttributes)
33
    {
34 2
        $this->htmlAttributes = $htmlAttributes;
35
36 2
        return $this;
37
    }
38
39
    /** {@inheritdoc} */
40 2
    public function setBreadcrumbs(array $breadcrumbs)
41
    {
42 2
        $this->breadcrumbs = $breadcrumbs;
43
44 2
        return $this;
45
    }
46
47
    /** {@inheritdoc} */
48 13
    public function getSeoPage()
49
    {
50 13
        return clone $this;
51
    }
52
53
    /** {@inheritdoc} */
54 2
    public static function create()
55
    {
56 2
        return new static();
57
    }
58
}
59