AbstractChildScope   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getParent() 0 4 1
A getNamespace() 0 4 1
A getUses() 0 4 1
1
<?php
2
3
namespace Padawan\Domain\Scope;
4
5
use Padawan\Domain\Scope;
6
7
abstract class AbstractChildScope extends AbstractScope
8
{
9
    /** @var Scope */
10
    private $parent;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
11
    public function __construct(Scope $scope)
12
    {
13
        $this->parent = $scope;
14
    }
15
    /** @return Scope */
16
    public function getParent()
17
    {
18
        return $this->parent;
19
    }
20
    public function getNamespace()
21
    {
22
        return $this->parent->getNamespace();
23
    }
24
    public function getUses()
25
    {
26
        return $this->parent->getUses();
27
    }
28
}
29