LmcUserDisplayName::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace LmcUser\Factory\View\Helper;
4
5
use Interop\Container\ContainerInterface;
6
use Laminas\ServiceManager\Factory\FactoryInterface;
7
use LmcUser\View;
8
9
class LmcUserDisplayName implements FactoryInterface
10
{
11
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
12
    {
13
        $viewHelper = new View\Helper\LmcUserDisplayName;
14
        $viewHelper->setAuthService($container->get('lmcuser_auth_service'));
15
16
        return $viewHelper;
17
    }
18
}
19