Completed
Pull Request — master (#74)
by Julien
04:30
created

HalCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

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

2 Methods

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