Completed
Pull Request — master (#4)
by Nicolas
02:09
created

EntityIdentifierAlreadyProcessException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 9 1
1
<?php
2
3
namespace Smart\EtlBundle\Exception\Extractor;
4
5
/**
6
 * Exception thrown when the entity identifier had already been added to the process entities
7
 *
8
 * @author Mathieu Ducrot <[email protected]>
9
 */
10
class EntityIdentifierAlreadyProcessException extends ExtractException
11
{
12
    /**
13
     * @param string $entityType
14
     *
15
     * @return EntityIdentifierAlreadyProcessException
16
     */
17
    public static function create($entityType)
18
    {
19
        return new self(
20
            sprintf(
21
                'Entity type "%s" already registered',
22
                $entityType
23
            )
24
        );
25
    }
26
}
27