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

FinalDelegate::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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
}