Completed
Push — master ( 743834...4ffa9b )
by Julian
12s
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 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace ParaTest\Parser;
4
5
class ParsedFunction extends ParsedObject
6
{
7
    /**
8
     * @var string
9
     */
10
    private $visibility;
11
12 66
    public function __construct($doc, $visibility, $name)
13
    {
14 66
        parent::__construct($doc, $name);
15 66
        $this->visibility = $visibility;
16 66
    }
17
18
    /**
19
     * Returns the accessibility level of the parsed
20
     * method - i.e public, private, protected.
21
     *
22
     * @return string
23
     */
24
    public function getVisibility()
25
    {
26
        return $this->visibility;
27
    }
28
}
29