Passed
Push — master ( 18af30...0e6a78 )
by Mathias
45:31 queued 28:39
created

LazyJobFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2019 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Core\Queue;
12
13
use Interop\Container\ContainerInterface;
14
use SlmQueue\Job\JobPluginManager;
15
use Zend\ServiceManager\Factory\FactoryInterface;
16
17
/**
18
 * Factory for \Core\Queue\LazyJob
19
 * 
20
 * @author Mathias Gelhausen <[email protected]>
21
 * @todo write test  
22
 */
23
class LazyJobFactory implements FactoryInterface
24
{
25
    
26
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
27
    {
28
        $service = new LazyJob($container->get(JobPluginManager::class), $options);
29
        
30
        return $service;    
31
    }
32
}
33