Completed
Push — master ( 743834...4ffa9b )
by Julian
12s
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
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