Completed
Push — master ( 662a49...9d1eac )
by Дмитрий
9s
created

ParentDefinition   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 71.43%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 36
ccs 5
cts 7
cp 0.7143
rs 10
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCFG() 0 4 1
A getNamespace() 0 4 1
A setNamespace() 0 4 1
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace PHPSA\Definition;
7
8
use PHPSA\ScopePointer;
9
10
/**
11
 * Abstract Definition with namespace added
12
 */
13
abstract class ParentDefinition extends AbstractDefinition
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $namespace;
19
20
    /**
21
     * @var \PHPSA\ControlFlow\ControlFlowGraph
22
     */
23
    protected $cfg;
24
25
    /**
26
     * @return string
27
     */
28 51
    public function getNamespace()
29
    {
30 51
        return $this->namespace;
31
    }
32
33
    /**
34
     * @param string $namespace
35
     */
36 51
    public function setNamespace($namespace)
37
    {
38 51
        $this->namespace = $namespace;
39 51
    }
40
41
    /**
42
     * @return \PHPSA\ControlFlow\ControlFlowGraph
43
     */
44
    public function getCFG()
45
    {
46
        return $this->cfg;
47
    }
48
}
49