Change::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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