InventoryItemStub   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setHref() 0 4 1
A setId() 0 4 1
1
<?php
2
namespace Perry\Representation\Eve\v1;
3
4
use \Perry\Representation\Reference as Reference;
5
use \Perry\Representation\Uri as Uri;
6
use \Perry\Representation\Base as Base;
7
8
class InventoryItemStub extends Base
9
{
10
    public $href;
11
12
    public $id;
13
14
    // by Warringer\Types\Uri
15
    public function setHref($href)
16
    {
17
        $this->href = new Uri($href);
18
    }
19
20
    // by Warringer\Types\Long
21
    public function setId($id)
22
    {
23
        $this->id = $id;
24
    }
25
26
}
27