ExceptionViolationHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleViolation() 0 4 1
1
<?php
2
namespace BehEh\Flaps\Violation;
3
4
use BehEh\Flaps\ViolationHandlerInterface;
5
6
/**
7
 * Handles violations by throwing ThrottlingViolationExceptions.
8
 *
9
 * @since 0.1
10
 * @author Benedict Etzel <[email protected]>
11
 */
12
class ExceptionViolationHandler implements ViolationHandlerInterface
13
{
14
    /**
15
     * Handles a violation by throwing a ThrottlingViolationException.
16
     * @throws ThrottlingViolationException
17
     */
18 1
    public function handleViolation()
19
    {
20 1
        throw new ThrottlingViolationException();
21
    }
22
23
}
24