Completed
Push — master ( 2cf8eb...09dcac )
by Дмитрий
04:07
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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
wmc 2
lcom 0
cbo 1

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