BreadcrumbItem::getUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
ccs 1
cts 1
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PiedWeb\UrlHarvester;
4
5
class BreadcrumbItem
6
{
7
    private $url;
8
9
    private $name;
10 6
11
    public function __construct($url, $name)
12 6
    {
13 6
        $this->url = $url;
14 6
        $this->name = $name;
15
    }
16 3
17
    public function getUrl()
18 3
    {
19
        return $this->url;
20
    }
21 3
22
    public function getName()
23 3
    {
24
        return $this->name;
25
    }
26 3
27
    public function getCleanName()
28 3
    {
29
        return substr(strip_tags($this->name), 0, 100);
30
    }
31
}
32