CanGetValue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 4 1
A __construct() 0 6 1
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