Passed
Push — master ( c541cb...64a56e )
by Chris
33s
created

ReportToCsvFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 5 1
1
<?php
2
3
4
namespace ConferenceTools\Tickets\Cli\Command;
5
6
7
use ConferenceTools\Tickets\Report\ReportManager;
8
use Zend\ServiceManager\FactoryInterface;
9
use Zend\ServiceManager\ServiceLocatorInterface;
10
11
class ReportToCsvFactory implements FactoryInterface
12
{
13
    public function createService(ServiceLocatorInterface $serviceLocator)
14
    {
15
        $serviceLocator = $serviceLocator->getServiceLocator();
16
        return ReportToCsv::build($serviceLocator->get(ReportManager::class));
17
    }
18
}