Passed
Push — master ( cbb991...62e47c )
by Albert
07:16 queued 05:08
created

StreamedResponse::getOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SwooleTW\Http\Transformers;
4
5
use Symfony\Component\HttpFoundation\StreamedResponse as BaseStreamedResponse;
6
7
/**
8
 * Class StreamedResponse
9
 */
10
class StreamedResponse extends BaseStreamedResponse
11
{
12
    /**
13
     * Output buffer
14
     *
15
     * @var string
16
     */
17
    protected $output;
18
19
    /**
20
     * Get output buffer
21
     *
22
     * @return string
23
     */
24
    public function getOutput(): ?string
25
    {
26
        return $this->output;
27
    }
28
29
    /**
30
     * Set output buffer
31
     *
32
     * @param string $output
33
     */
34
    public function setOutput(?string $output = null): void
35
    {
36
        $this->output = $output;
37
    }
38
}