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

StreamedResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutput() 0 3 1
A getOutput() 0 3 1
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
}