LinkDescriptor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLink() 0 4 1
A getLink() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * This file is part of phpDocumentor.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @author    Mike van Riel <[email protected]>
11
 * @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
12
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
13
 * @link      http://phpdoc.org
14
 */
15
16
namespace phpDocumentor\Descriptor\Tag;
17
18
use phpDocumentor\Descriptor\TagDescriptor;
19
20
/**
21
 * Descriptor representing the link tag with a descriptor.
22
 */
23
class LinkDescriptor extends TagDescriptor
24
{
25
    /** @var string $link the url where the link points to. */
26
    protected $link;
27
28
    /**
29
     * Sets the URL where the link points to.
30
     *
31
     * @param string $link
32
     */
33 1
    public function setLink($link)
34
    {
35 1
        $this->link = $link;
36 1
    }
37
38
    /**
39
     * Returns the URL where this link points to.
40
     *
41
     * @return string
42
     */
43 1
    public function getLink()
44
    {
45 1
        return $this->link;
46
    }
47
}
48