TranscodeVideosCommandFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
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