Completed
Branch v7 (f01542)
by Pascal
08:46
created

HandlesAdvancedMedia   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A addFormatOutputMapping() 0 7 1
1
<?php
2
3
namespace Pbmedia\LaravelFFMpeg\Exporters;
4
5
use FFMpeg\Format\FormatInterface;
6
use Illuminate\Support\Collection;
7
use Pbmedia\LaravelFFMpeg\FFMpeg\AdvancedOutputMapping;
8
use Pbmedia\LaravelFFMpeg\Filesystem\Media;
9
10
trait HandlesAdvancedMedia
11
{
12
    protected Collection $maps;
13
14
    public function addFormatOutputMapping(FormatInterface $format, Media $output, array $outs, $forceDisableAudio = false, $forceDisableVideo = false)
15
    {
16
        $this->maps->push(
17
            new AdvancedOutputMapping($outs, $format, $output, $forceDisableAudio, $forceDisableVideo)
18
        );
19
20
        return $this;
21
    }
22
}
23