Context   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 21
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContext() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Magium\Configuration\Config;
4
5
use Magium\Configuration\Config\Repository\ConfigurationRepository;
6
7
class Context
8
{
9
10
    protected $context;
11
12
    public function __construct($context = ConfigurationRepository::CONTEXT_DEFAULT)
13
    {
14
        $this->context = $context;
15
    }
16
17
    public function getContext()
18
    {
19
        return $this->context;
20
    }
21
22
    public function __toString()
23
    {
24
        return $this->context;
25
    }
26
27
}
28