Breadcrumb::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
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