Passed
Push — master ( 571547...7a0005 )
by Jasper
03:20
created

MorphToRelation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Swis\JsonApi\Client\Relations;
4
5
use Swis\JsonApi\Client\Interfaces\ItemInterface;
6
7
class MorphToRelation extends AbstractOneRelation
8
{
9
    /**
10
     * @var \Swis\JsonApi\Client\Interfaces\ItemInterface
11
     */
12
    protected $parentItem;
13
14
    /**
15
     * @param \Swis\JsonApi\Client\Interfaces\ItemInterface $item
16
     */
17 35
    public function __construct(ItemInterface $item)
18
    {
19 35
        $this->parentItem = $item;
20 35
    }
21
}
22