RepresentProcessorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A representationDoesNotExist() 0 10 1
1
<?php
2
3
namespace TonicForHealth\PagerDutyClient\RepresentProcessor\Exception;
4
5
use Exception;
6
7
/**
8
 * Class RepresentProcessorException.
9
 */
10
class RepresentProcessorException extends Exception
11
{
12
    /**
13
     * @param string $className
14
     * @param string $type
15
     *
16
     * @return self
17
     */
18
    public static function representationDoesNotExist($className, $type)
19
    {
20
        return new self(
21
            sprintf(
22
                'Representation doesn\'t exist for CLASSNAME:%s and TYPE:%s',
23
                $className,
24
                $type
25
            )
26
        );
27
    }
28
}
29