AbstractChildScope::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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