EventFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
namespace Application\View\Helper\Factory;
3
4
use Laminas\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