LinkType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource;
6
7
final class LinkType
8
{
9
    public const SELF_LINK = 'self';
10
    public const NEW_LINK = 'new';
11
    public const CRAWL_LINK = 'crawl';
12
13
    public function __construct(
14
        public string $key,
15
        public string $type,
16
    ) {
17
    }
18
}
19