NoLookupLicenses::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dominikb\ComposerLicenseChecker;
6
7
use DateTimeImmutable;
8
9
class NoLookupLicenses extends License
10
{
11 3
    public function __construct(string $shortName)
12
    {
13 3
        $this->setShortName($shortName);
14 3
        $this->setCan([]);
15 3
        $this->setCannot([]);
16 3
        $this->setMust([]);
17 3
        $this->setSource('-');
18 3
        $this->setCreatedAt(new DateTimeImmutable);
19
    }
20
}
21