TranscodeVideosCommandFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 6
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Command;
6
7
use Psr\Container\ContainerInterface;
8
use Soluble\MediaTools\Video\VideoAnalyzerInterface;
9
use Soluble\MediaTools\Video\VideoConverterInterface;
10
use Soluble\MediaTools\Video\VideoInfoReaderInterface;
11
12
class TranscodeVideosCommandFactory
13
{
14
    public function __invoke(ContainerInterface $container): TranscodeVideosCommand
15
    {
16
        return new TranscodeVideosCommand(
17
            $container->get(VideoInfoReaderInterface::class),
18
            $container->get(VideoAnalyzerInterface::class),
19
            $container->get(VideoConverterInterface::class)
20
        );
21
    }
22
}
23