Link   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 37.5%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 3
cts 8
cp 0.375
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getHref() 0 4 1
A setHref() 0 6 1
1
<?php
2
3
namespace App\Model;
4
5
use JMS\Serializer\Annotation\Expose;
6
use JMS\Serializer\Annotation\Type;
7
8
class Link
9
{
10
    /**
11
     * @param $href
12
     */
13 8
    public function __construct($href)
14
    {
15 8
        $this->href = $href;
16 8
    }
17
18
    /**
19
     * @var string
20
     *
21
     * @Expose()
22
     * @Type("string")
23
     */
24
    protected $href;
25
26
    /**
27
     * @return string
28
     */
29
    public function getHref()
30
    {
31
        return $this->href;
32
    }
33
34
    /**
35
     * @param  string $href
36
     * @return $this
37
     */
38
    public function setHref($href)
39
    {
40
        $this->href = $href;
41
42
        return $this;
43
    }
44
}
45