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

ControlException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

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 \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