Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class MediaBuilder extends ResponseBuilder |
||
17 | { |
||
18 | private ?int $start; |
||
19 | private ?int $end; |
||
20 | private ?int $length; |
||
21 | |||
22 | 5 | public function setRange($start, $end, $length) |
|
23 | { |
||
24 | 5 | $this->start = $start; |
|
25 | 5 | $this->end = $end; |
|
26 | 5 | $this->length = $length; |
|
27 | } |
||
28 | |||
29 | 12 | public function setContentType(string $contentType): void |
|
32 | } |
||
33 | |||
34 | 10 | public function getBody(): StreamInterface |
|
45 |