Completed
Push — master ( 8c06ff...a2f0f3 )
by Julian
02:34
created

ParsedFunction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getVisibility() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ParaTest\Parser;
6
7
class ParsedFunction extends ParsedObject
8
{
9
    /**
10
     * @var string
11
     */
12
    private $visibility;
13
14 66
    public function __construct(string $doc, string $visibility, string $name)
15
    {
16 66
        parent::__construct($doc, $name);
17 66
        $this->visibility = $visibility;
18 66
    }
19
20
    /**
21
     * Returns the accessibility level of the parsed
22
     * method - i.e public, private, protected.
23
     *
24
     * @return string
25
     */
26
    public function getVisibility(): string
27
    {
28
        return $this->visibility;
29
    }
30
}
31