NoLookupLicenses   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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