Completed
Push — master ( 3200a4...6497a9 )
by Дмитрий
9s
created

ParentDefinition   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
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 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
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
     * @return string
22
     */
23 51
    public function getNamespace()
24
    {
25 51
        return $this->namespace;
26
    }
27
28
    /**
29
     * @param string $namespace
30
     */
31 51
    public function setNamespace($namespace)
32
    {
33 51
        $this->namespace = $namespace;
34 51
    }
35
}
36