AppTerminating   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace N1215\Tsukuyomi\Event;
5
6
use Psr\Http\Message\ResponseInterface;
7
use Psr\Http\Message\ServerRequestInterface;
8
9
class AppTerminating extends Event
10
{
11
    const NAME = 'app.terminating';
12
13
    /**
14
     * コンストラクタ
15
     * @param ServerRequestInterface $request
16
     * @param ResponseInterface $response
17
     */
18 5
    public function __construct(ServerRequestInterface $request, ResponseInterface $response)
19
    {
20 5
        parent::__construct(self::NAME, null, ['request' => $request, 'response' => $response]);
21 5
    }
22
}
23