Change   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Swaggest\ApiCompat;
4
5
6
class Change
7
{
8
    public $path;
9
    public $message;
10
    public $originalValue;
11
    public $newValue;
12
13
    /**
14
     * Change constructor.
15
     * @param string $path
16
     * @param string $message
17
     * @param mixed $originalValue
18
     * @param mixed $newValue
19
     */
20 1
    public function __construct($path, $message, $originalValue = null, $newValue = null)
21
    {
22 1
        $this->path = $path;
23 1
        $this->message = $message;
24 1
        $this->originalValue = $originalValue;
25 1
        $this->newValue = $newValue;
26 1
    }
27
28
}