Completed
Push — master ( cdc95d...46dcb4 )
by Taosikai
29:07 queued 14:04
created

FinalDelegate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 4 1
1
<?php
2
/**
3
 * slince middleware library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Slince\Middleware;
7
8
use Interop\Http\ServerMiddleware\DelegateInterface;
9
use Psr\Http\Message\ServerRequestInterface;
10
use Slince\Middleware\Exception\MissingResponseException;
11
12
class FinalDelegate implements DelegateInterface
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function process(ServerRequestInterface $request)
18
    {
19
        throw new MissingResponseException( 'The queue was exhausted, with no response returned');
20
    }
21
}