GenerateCliContentFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 13 1
1
<?php
2
/**
3
 * @author stev leibelt <[email protected]>
4
 * @since 2015-07-11 
5
 */
6
7
namespace NetBazzlineZfCliGenerator\Service;
8
9
use Net\Bazzline\Component\ProcessPipe\Pipe;
10
use NetBazzlineZfCliGenerator\Service\ProcessPipe\Transformer\DumpCliContent;
11
use Symfony\Component\Filesystem\Filesystem;
12
use Zend\ServiceManager\FactoryInterface;
13
use Zend\ServiceManager\ServiceLocatorInterface;
14
15
class GenerateCliContentFactory implements FactoryInterface
16
{
17
    /**
18
     * Create service
19
     *
20
     * @param ServiceLocatorInterface $serviceLocator
21
     * @return mixed
22
     */
23
    public function createService(ServiceLocatorInterface $serviceLocator)
24
    {
25
        $dump = new DumpCliContent();
26
27
        $dump->setFilesystem(new Filesystem());
28
        $dump->setTimestamp(time());
29
30
        $pipe = new Pipe(
31
            $dump
32
        );
33
34
        return $pipe;
35
    }
36
}