WorkerHelperFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
3
/**
4
 * Aist Queue (http://mateuszsitek.com/projects/queue)
5
 *
6
 * @copyright Copyright (c) 2017 DIGITAL WOLVES LTD (http://digitalwolves.ltd) All rights reserved.
7
 * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
8
 */
9
10
namespace Aist\Queue\Console\Helper;
11
12
use Interop\Container\ContainerInterface;
13
14
/**
15
 * Factory for WorkerHelper
16
 */
17
class WorkerHelperFactory
18
{
19
    /**
20
     * @param ContainerInterface $container
21
     *
22
     * @return WorkerHelper
23
     */
24
    public function __invoke(ContainerInterface $container)
25
    {
26
        return new WorkerHelper($container->get(\SlmQueueDoctrine\Worker\DoctrineWorker::class));
27
    }
28
}
29