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

Stdin::__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
 * Stdin binary stream
10
 *
11
 * FCGI_STDIN is a stream record type used in sending arbitrary data from the Web server to the application
12
 *
13
 * @author Alexander.Lisachenko
14
 */
15
class Stdin extends Record
16
{
17
18
    public function __construct(string $contentData = '')
19 2
    {
20
        $this->type = FCGI::STDIN;
21 2
        $this->setContentData($contentData);
22 2
    }
23 2
24
}
25