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

AbortRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4286
cc 1
eloc 3
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