Item   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 50
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getUrl() 0 4 1
A setUrl() 0 6 1
A getText() 0 4 1
A setText() 0 6 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
}