Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait InteractsWithHttpHeaders |
||
8 | { |
||
9 | use InteractsWithInputPath; |
||
10 | |||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $headers = []; |
||
15 | |||
16 | public function getHeaders(): array |
||
17 | { |
||
18 | return $this->headers; |
||
19 | } |
||
20 | |||
21 | public function setHeaders(array $headers = []): self |
||
22 | { |
||
23 | $this->headers = $headers; |
||
24 | |||
25 | return $this; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Maps the headers into a key-value string for FFmpeg. Returns |
||
30 | * an array of arguments to pass into the command. |
||
31 | * |
||
32 | * @param array $headers |
||
33 | * @return array |
||
34 | */ |
||
35 | public static function compileHeaders(array $headers = []): array |
||
46 | } |
||
47 | } |
||
48 |