ControlException::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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