Passed
Push — master ( 0057b2...3e8fcf )
by Marek
02:11
created

ExistingTicketsIndexServiceFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace AppBuilder\Application\Module\ExistingTicketsIndex\Factory;
6
7
use AppBuilder\Application\Configuration\ValueObject\Parameters;
8
use AppBuilder\Application\Module\ExistingTicketsIndex\ExistingTicketsIndexService;
9
use Psr\Log\LoggerInterface;
10
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
11
12
class ExistingTicketsIndexServiceFactory
13
{
14
    public function create(
15
        Parameters $applicationParams,
16
        EventDispatcherInterface $dispatcher,
17
        LoggerInterface $logger
18
    ) : ExistingTicketsIndexService {
19
        return new ExistingTicketsIndexService($applicationParams, $dispatcher, $logger);
20
    }
21
}
22