IntegerDescriptor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A __toString() 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\Type;
17
18
use phpDocumentor\Descriptor\Interfaces\TypeInterface;
19
20
class IntegerDescriptor implements TypeInterface
21
{
22
    /**
23
     * Returns a human-readable name for this type.
24
     *
25
     * @return string
26
     */
27 1
    public function getName()
28
    {
29 1
        return 'integer';
30
    }
31
32
    /**
33
     * Returns a human-readable name for this type.
34
     *
35
     * @return string
36
     */
37 1
    public function __toString(): string
38
    {
39 1
        return $this->getName();
40
    }
41
}
42