PlaylistDoesNotExist::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace HansOtt\Lastify\Exception;
4
5
use Exception;
6
7
final class PlaylistDoesNotExist extends Exception
8
{
9
    private $name;
10
11 3
    public function __construct($name)
12
    {
13 3
        $this->name = $name;
14 3
    }
15
16
    public function getName()
17
    {
18
        return $this->name;
19
    }
20
}
21