MissingOperationNameRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
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 1
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Cypress\PatchManager\Exception;
4
5
class MissingOperationNameRequest extends PatchManagerException
6
{
7 2
    public function __construct(array $operationData)
8
    {
9 2
        $message = "You passed an operation without a name to the PatchManager. The json should contains
10 2
            an 'op' key. Here is the patch operation that failed: ".json_encode($operationData);
11 2
        parent::__construct($message);
12
    }
13
}
14