Completed
Branch master (cb3538)
by Julian
02:11
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 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
}