Completed
Push — master ( 312098...b95ba9 )
by Nikolas
40:06
created

BreadCrumb   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 31
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCaption() 0 3 1
A getTarget() 0 3 1
1
<?php
2
namespace rtens\domin\delivery\web;
3
4
class BreadCrumb {
5
6
    /** @var string */
7
    private $target;
8
9
    /** @var string */
10
    private $caption;
11
12
    /**
13
     * @param string $caption
14
     * @param string $target
15
     */
16
    public function __construct($caption, $target) {
17
        $this->caption = $caption;
18
        $this->target = $target;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getCaption() {
25
        return $this->caption;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getTarget() {
32
        return $this->target;
33
    }
34
}