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

HandlesAdvancedMedia::addFormatOutputMapping()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 5
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