Completed
Push — master ( 18000e...919955 )
by Sébastien
02:06
created

ScanCommandFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * @see       https://github.com/soluble-io/soluble-mediatools-cli for the canonical repository
7
 * @copyright Copyright (c) 2018-2019 Sébastien Vanvelthem. (https://github.com/belgattitude)
8
 * @license   https://github.com/soluble-io/soluble-mediatools-cli/blob/master/LICENSE.md MIT
9
 */
10
11
namespace Soluble\MediaTools\Cli\Command;
12
13
use Psr\Container\ContainerInterface;
14
use Soluble\MediaTools\Video\VideoInfoReaderInterface;
15
16
class ScanCommandFactory
17
{
18 2
    public function __invoke(ContainerInterface $container): ScanCommand
19
    {
20 2
        return new ScanCommand($container->get(VideoInfoReaderInterface::class));
21
    }
22
}
23