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

ParsedFunction::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
crap 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