License   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
4
namespace Apie\OpenapiSchema\Spec;
5
6
use Apie\CommonValueObjects\Url;
7
use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension;
8
use Apie\OpenapiSchema\Contract\LicenseContract;
9
use Apie\ValueObjects\ValueObjectInterface;
10
11
class License implements ValueObjectInterface, LicenseContract
12
{
13
    use CompositeValueObjectWithExtension;
14
15
    /**
16
     * @var string
17
     */
18
    private $name;
19
20
    /**
21
     * @var Url
22
     */
23
    private $url;
0 ignored issues
show
introduced by
The private property $url is not used, and could be removed.
Loading history...
24
25
    public function __construct(string $name)
26
    {
27
        $this->name = $name;
28
    }
29
}
30