Completed
Push — develop ( f102ca...488b09 )
by Mathias
20:12 queued 11:00
created

FetchExternalImageJobFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
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 Jobs\Queue;
12
13
use Interop\Container\ContainerInterface;
14
use Zend\ServiceManager\Factory\FactoryInterface;
15
16
/**
17
 * Factory for \Jobs\Queue\FetchExternalImageJob
18
 * 
19
 * @author Mathias Gelhausen <[email protected]>
20
 * @todo write test  
21
 */
22
class FetchExternalImageJobFactory implements FactoryInterface
23
{
24
    
25
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
26
    {
27
        $service = new FetchExternalImageJob(
28
            $container->get('repositories')->get('Jobs')
29
        );
30
        
31
        return $service;    
32
    }
33
}
34