Stdout::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 3
cts 3
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
 * Stdout binary stream
10
 *
11
 * FCGI_STDOUT is a stream record for sending arbitrary data from the application to the Web server
12
 *
13
 * @author Alexander.Lisachenko
14
 */
15
class Stdout extends Record
16
{
17
18
    public function __construct(string $contentData = '')
19 2
    {
20
        $this->type = FCGI::STDOUT;
21 2
        $this->setContentData($contentData);
22 2
    }
23 2
24
}
25