Link   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getLink() 0 3 1
A __construct() 0 4 1
A getHref() 0 3 1
1
<?php
2
/**
3
 * Changelog keeper
4
 *
5
 * @link      https://github.com/hiqdev/chkipper
6
 * @package   chkipper
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\chkipper\lib;
12
13
/**
14
 * Link class.
15
 *
16
 * @author Andrii Vasyliev <[email protected]>
17
 */
18
class Link
19
{
20
    protected $_link;
21
    protected $_href;
22
23
    public function __construct($link, $href)
24
    {
25
        $this->_link = $link;
26
        $this->_href = $href;
27
    }
28
29
    public function getLink()
30
    {
31
        return $this->_link;
32
    }
33
34
    public function getHref()
35
    {
36
        return $this->_href;
37
    }
38
}
39