GenerateCliContentFactory::createService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
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
}