EventFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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