ChangePassword::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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