Completed
Push — master ( cb3538...cd00cd )
by Julian
14s
created

ParsedFunction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 4
cts 4
cp 1
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 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
}