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

NoLookupLicenses::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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