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

EventFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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