MissingOperationNameRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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