Completed
Push — master ( a8feb5...ffd0cc )
by Alexander
15s
created

AbortRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
namespace Lisachenko\Protocol\FCGI\Record;
4
5
use Lisachenko\Protocol\FCGI;
6
use Lisachenko\Protocol\FCGI\Record;
7
8
/**
9
 * The Web server sends a FCGI_ABORT_REQUEST record to abort a request
10
 *
11
 * @author Alexander.Lisachenko
12
 */
13
class AbortRequest extends Record
14
{
15
16
    public function __construct(int $requestId = 0)
17
    {
18 2
        $this->type = FCGI::ABORT_REQUEST;
19
        $this->setRequestId($requestId);
20 2
    }
21
}
22