Completed
Push — master ( 15ce58...d25613 )
by Alex
07:50 queued 05:17
created

CanGetValue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace MessagePack\Exception;
5
6
trait CanGetValue
7
{
8
    /** @var mixed */
9
    private $value;
10
11 24
    public function getValue()
12
    {
13 24
        return $this->value;
14
    }
15
16 24
    private function __construct($value, string $message)
17
    {
18 24
        parent::__construct($message);
19
20 24
        $this->value = $value;
21 24
    }
22
}
23