Completed
Push — master ( 014eb2...0ec7e8 )
by Alejandro
14s queued 12s
created

TaskRunnerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\EventDispatcher\Async;
5
6
use Interop\Container\ContainerInterface;
7
use Psr\Log\LoggerInterface;
8
use Zend\ServiceManager\Factory\FactoryInterface;
9
10
class TaskRunnerFactory implements FactoryInterface
11
{
12 1
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null): TaskRunner
13
    {
14 1
        $logger = $container->get(LoggerInterface::class);
15 1
        return new TaskRunner($logger, $container);
16
    }
17
}
18