ControlException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getValue() 0 4 1
1
<?php
2
3
namespace mpyw\Co\Internal;
4
5
class ControlException extends \Exception
6
{
7
    private $value;
8
9
    /**
10
     * Constructor.
11
     * @param mixed    $value   Value to be retrived.
12
     */
13 3
    public function __construct($value)
14 3
    {
15 3
        parent::__construct();
16 3
        $this->value = $value;
17 3
    }
18
19
    /**
20
     * Get value.
21
     * @return mixed
22
     */
23 3
    public function getValue()
24 3
    {
25 3
        return $this->value;
26
    }
27
}
28