Completed
Push — master ( ebcbe7...06aa7a )
by Ryosuke
04:11
created

ControlException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
crap 1
1
<?php
2
3
namespace mpyw\Co\Internal;
4
5
class ControlException extends \RuntimeException
6
{
7
    private $value;
8
9
    /**
10
     * Constructor.
11
     * @param string   $message Dummy.
12
     * @param int      $code    Dummy.
13
     * @param mixed    $value   Value to be retrived.
14
     */
15 3
    public function __construct($message, $code, $value)
16 3
    {
17 3
        parent::__construct($message, $code);
18 3
        $this->value = $value;
19 3
    }
20
21
    /**
22
     * Get value.
23
     * @return mixed
24
     */
25 3
    public function getValue()
26 3
    {
27 3
        return $this->value;
28
    }
29
}
30