Passed
Push — master ( d1842b...7cb61a )
by Matteo
02:41
created

MissingProviderException::__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 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Cacheasy;
5
6
class MissingProviderException extends \Exception
7
{
8
    private $label;
9 1
    public function __construct(string $label)
10
    {
11 1
        parent::__construct("The content of the resource `$label` must be provided by some provider, but no provider is specified for it.");
12 1
        $this->label = $label;
13 1
    }
14
15
    public function getLabel() : string
16
    {
17
        return $this->label;
18
    }
19
}
20