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

SeoPage::getCanonicalLink()   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 SeoPage implements SeoPageInterface
6
{
7
    /** @var HtmlMetaInterface[] */
8
    protected $meta = [];
9
    /** @var string */
10
    protected $title;
11
    /** @var string */
12
    protected $canonical;
13
    /** @var string[] */
14
    protected $htmlAttributes = [];
15
    /** @var string[] */
16
    protected $breadcrumbs = [];
17
18
    /** @return HtmlMetaInterface[] */
19 3
    public function getMeta()
20
    {
21 3
        return $this->meta;
22
    }
23
24
    /** @return string */
25 5
    public function getTitle()
26
    {
27 5
        return $this->title;
28
    }
29
30
    /** @return string[] */
31 2
    public function getHtmlAttributes()
32
    {
33 2
        return $this->htmlAttributes;
34
    }
35
36
    /** @return string|null */
37 3
    public function getCanonicalLink()
38
    {
39 3
        return $this->canonical;
40
    }
41
42
    /** @return string[] */
43 2
    public function getBreadcrumbs()
44
    {
45 2
        return $this->breadcrumbs;
46
    }
47
}
48