Completed
Push — master ( 5b9a3a...d89495 )
by Hans
03:39
created

PlaylistDoesNotExist::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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