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

ControlException::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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