Item::setUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace BreadcrumbsBundle\Model;
3
4
/**
5
 * Class Item
6
 * @package BreadcrumbsBundle\Model
7
 */
8
class Item
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $url;
14
15
    /**
16
     * @var string
17
     */
18
    protected $text;
19
20
    /**
21
     * @return string|null
22
     */
23
    public function getUrl(): ?string
24
    {
25
        return $this->url;
26
    }
27
28
    /**
29
     * @param string|null $url
30
     * @return Item
31
     */
32
    public function setUrl(string $url = null): Item
33
    {
34
        $this->url = $url;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getText(): string
43
    {
44
        return $this->text;
45
    }
46
47
    /**
48
     * @param string $text
49
     * @return Item
50
     */
51
    public function setText(string $text): Item
52
    {
53
        $this->text = $text;
54
55
        return $this;
56
    }
57
}