VersionDescriptor   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 getVersion() 0 4 1
A setVersion() 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 version tag on a class, interface, trait or file.
22
 */
23
class VersionDescriptor extends TagDescriptor
24
{
25
    /** @var string $version Version string representing the current version of the element */
26
    protected $version;
27
28
    /**
29
     * Returns the current version for the associated element.
30
     *
31
     * @return string
32
     */
33 1
    public function getVersion()
34
    {
35 1
        return $this->version;
36
    }
37
38
    /**
39
     * Sets the version for the associated element.
40
     *
41
     * @param string $version
42
     */
43 1
    public function setVersion($version)
44
    {
45 1
        $this->version = $version;
46 1
    }
47
}
48