HasManyRelation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Swis\JsonApi\Client\Relations;
6
7
use Swis\JsonApi\Client\Concerns\HasType;
8
use Swis\JsonApi\Client\Interfaces\TypedRelationInterface;
9
10
class HasManyRelation extends AbstractManyRelation implements TypedRelationInterface
11
{
12
    use HasType;
13
14 72
    public function __construct(string $type)
15
    {
16 72
        $this->setType($type);
17 36
    }
18
}
19