EventValidationResponseErrorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 1
Metric Value
wmc 1
c 1
b 1
f 1
lcom 0
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A eventApiResponseError() 0 9 1
1
<?php
2
3
namespace TonicForHealth\PagerDutyClient\Validation\Event\Exception;
4
5
/**
6
 * Class EventValidationResponseErrorException.
7
 */
8
class EventValidationResponseErrorException extends EventValidationResponseException
9
{
10
    /**
11
     * @param string $error
12
     *
13
     * @return EventValidationResponseErrorException
14
     */
15 1
    public static function eventApiResponseError($error)
16
    {
17 1
        return new self(
18
            sprintf(
19 1
                'Event api returned the error:%s',
20
                $error
21
            )
22
        );
23
    }
24
}
25