Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | final class Source implements JsonConvertible |
||
14 | { |
||
15 | use JsonConvertibleTrait; |
||
16 | |||
17 | /** @var Type */ |
||
18 | private $type; |
||
19 | |||
20 | /** @var Url */ |
||
21 | private $url; |
||
22 | |||
23 | /** @var Reference */ |
||
24 | private $reference; |
||
25 | |||
26 | 7 | public function __construct(Type $type, Url $url, Reference $reference) |
|
27 | { |
||
28 | 7 | $this->type = $type; |
|
29 | 7 | $this->url = $url; |
|
30 | 7 | $this->reference = $reference; |
|
31 | 7 | } |
|
32 | |||
33 | 6 | public static function buildFromArray(array $data): self |
|
39 | ); |
||
40 | } |
||
42 |