Passed
Push — master ( d33d35...37f9e4 )
by Dominik
01:18
created

NoLookupLicenses   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php declare(strict_types = 1);
2
3
4
namespace Dominikb\ComposerLicenseChecker;
5
6
7
use DateTimeImmutable;
8
9
class NoLookupLicenses extends License
10
{
11
    public function __construct(string $shortName)
12
    {
13
        $this->setShortName($shortName);
14
        $this->setCan([]);
15
        $this->setCannot([]);
16
        $this->setMust([]);
17
        $this->setSource('-');
18
        $this->setCreatedAt(new DateTimeImmutable);
19
    }
20
}
21