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

MissingProviderException::getLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
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