IndexControllerFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 16
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
6
 * @license   MIT
7
 */
8
9
namespace Cv\Factory\Controller;
10
11
12
use Cv\Controller\IndexController;
13
use Interop\Container\ContainerInterface;
14
use Laminas\ServiceManager\Factory\FactoryInterface;
15
16
class IndexControllerFactory implements FactoryInterface
17
{
18
    /**
19
     * Create a IndexController controller
20
     *
21
     * @param  ContainerInterface $container
22
     * @param  string             $requestedName
23
     * @param  null|array         $options
24
     *
25
     * @return IndexController
26
     */
27
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
28
    {
29
        //$searchForm = $container->get('forms')->get('Cv/SearchForm');
30
31
        return new IndexController();
32
    }
33
34
}