Breadcrumb   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
A getPath() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the vseth-semesterly-reports project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Model;
13
14
class Breadcrumb
15
{
16
    /**
17
     * @var string
18
     */
19
    private $path;
20
21
    /**
22
     * @var string
23
     */
24
    private $name;
25
26
    /**
27
     * Breadcrumb constructor.
28
     *
29
     * @param string $path
30
     * @param string $name
31
     */
32
    public function __construct($path, $name)
33
    {
34
        $this->path = $path;
35
        $this->name = $name;
36
    }
37
38
    public function getPath(): string
39
    {
40
        return $this->path;
41
    }
42
43
    public function getName(): string
44
    {
45
        return $this->name;
46
    }
47
}
48