Passed
Push — master ( 69a393...54385f )
by Pedro
02:00
created

EventFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
namespace Application\View\Helper\Factory;
3
4
use Zend\ServiceManager\Factory\FactoryInterface;
5
use Interop\Container\ContainerInterface;
6
use Application\Service\BotParser;
7
use Application\View\Helper\Event;
8
9
class EventFactory implements FactoryInterface
10
{
11
    public function __invoke(
12
        ContainerInterface $container,
13
        $requestedName,
14
        array $options = null
15
    ) {
16
        $parser = $container->get(BotParser::class);
17
18
        return new Event($parser->getPlayers());
19
    }
20
}
21