HalCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 16
ccs 1
cts 2
cp 0.5
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEmbedded() 0 3 1
A getLinks() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Mapado\RestClientSdk\Collection;
6
7
/**
8
 * Class HalCollection
9
 *
10
 * @author Julien Deniau <[email protected]>
11
 */
12
class HalCollection extends Collection
13
{
14
    /**
15
     * @return mixed
16
     */
17
    public function getLinks()
18
    {
19 1
        return $this->getExtraProperty('_links');
20
    }
21
22
    /**
23
     * @return mixed
24
     */
25
    public function getEmbedded()
26
    {
27
        return $this->getExtraProperty('_embedded');
28
    }
29
}
30