Completed
Push — master ( cd00cd...086849 )
by Julian
15s
created

ParsedFunction::getVisibility()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php namespace ParaTest\Parser;
2
3
class ParsedFunction extends ParsedObject
4
{
5
    /**
6
     * @var string
7
     */
8
    private $visibility;
9
10 66
    public function __construct($doc, $visibility, $name)
11
    {
12 66
        parent::__construct($doc, $name);
13 66
        $this->visibility = $visibility;
14 66
    }
15
16
    /**
17
     * Returns the accessibility level of the parsed
18
     * method - i.e public, private, protected
19
     *
20
     * @return string
21
     */
22
    public function getVisibility()
23
    {
24
        return $this->visibility;
25
    }
26
}