ChangePasswordFormFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 12 1
1
<?php
2
namespace ZfcUser\Factory\Form;
3
4
use Zend\ServiceManager\FactoryInterface;
5
use Zend\ServiceManager\ServiceLocatorInterface;
6
use ZfcUser\Form\ChangePassword;
7
use ZfcUser\Form\ChangePasswordFilter;
8
use ZfcUser\Options;
9
10
class ChangePasswordFormFactory implements FactoryInterface
11
{
12
    /**
13
     * {@inheritDoc}
14
     */
15
    public function createService(ServiceLocatorInterface $serviceManager)
16
    {
17
        /* @var $options Options\ModuleOptions */
18
        $options = $serviceManager->get('zfcuser_module_options');
19
20
        $inputFilter = new ChangePasswordFilter($options);
21
22
        $form = new ChangePassword(null, $options);
23
        $form->setInputFilter($inputFilter);
24
25
        return $form;
26
    }
27
}
28