Completed
Pull Request — master (#269)
by Enrico
14:29 queued 03:12
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
abstract class ParentDefinition extends AbstractDefinition
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $namespace;
14
15
    /**
16
     * @return string
17
     */
18 46
    public function getNamespace()
19
    {
20 46
        return $this->namespace;
21
    }
22
23
    /**
24
     * @param string $namespace
25
     */
26 46
    public function setNamespace($namespace)
27
    {
28 46
        $this->namespace = $namespace;
29 46
    }
30
}
31