UserHydrator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
3
namespace LmcUser\Factory;
4
5
use Interop\Container\ContainerInterface;
6
use Laminas\ServiceManager\Factory\FactoryInterface;
7
8
/**
9
 * Class UserHydrator
10
 */
11
class UserHydrator implements FactoryInterface
12
{
13
    /**
14
     * {@inheritDoc}
15
     * @see \Laminas\ServiceManager\Factory\FactoryInterface::__invoke()
16
     */
17
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
18
    {
19
        return new \LmcUser\Mapper\UserHydrator($container->get('lmcuser_base_hydrator'));
20
    }
21
}
22