Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class FFMpegConfig |
||
10 | { |
||
11 | /** @var string */ |
||
12 | protected $binary; |
||
13 | |||
14 | /** @var FFmpegProcess */ |
||
15 | protected $process; |
||
16 | |||
17 | /** @var int|null */ |
||
18 | protected $threads; |
||
19 | |||
20 | 1 | public function __construct(string $binary, ?int $threads = null) |
|
21 | { |
||
22 | 1 | $this->binary = $binary; |
|
23 | 1 | $this->threads = $threads; |
|
24 | 1 | } |
|
25 | |||
26 | 1 | public function getBinary(): string |
|
27 | { |
||
28 | 1 | return $this->binary; |
|
29 | } |
||
30 | |||
31 | 1 | public function getThreads(): ?int |
|
32 | { |
||
33 | 1 | return $this->threads; |
|
34 | } |
||
35 | |||
36 | 1 | public function getProcess(): FFmpegProcess |
|
43 | } |
||
44 | } |
||
45 |