Completed
Push — master ( 743834...4ffa9b )
by Julian
12s
created

ParsedFunction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getVisibility() 0 4 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