Passed
Pull Request — master (#69)
by Dave
02:36
created

AbsoluteFileName   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common;
6
7
use Webmozart\Assert\Assert;
8
use Webmozart\PathUtil\Path;
9
10
class AbsoluteFileName extends FileName
11
{
12
    public function __construct(string $fileName)
13
    {
14
        $isAbsolute = Path::isAbsolute($fileName);
15
        Assert::true($isAbsolute);
16
        parent::__construct($fileName);
17
    }
18
}
19