Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class Scope implements ScopeInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $name; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $parent; |
||
29 | |||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | private $isParentMandatory; |
||
34 | |||
35 | /** |
||
36 | * Scope constructor. |
||
37 | */ |
||
38 | public function __construct(string $name, string $parent = null, bool $isParentMandatory = false) |
||
43 | } |
||
44 | |||
45 | public function __toString(): string |
||
48 | } |
||
49 | |||
50 | public function getParent(): ?string |
||
51 | { |
||
52 | return $this->parent; |
||
53 | } |
||
54 | |||
55 | public function isParentMandatory(): bool |
||
58 | } |
||
59 | |||
60 | public function getName(): string |
||
65 |