Completed
Push — develop ( d2080b...f8d06d )
by
unknown
23:14 queued 10:41
created

EmploymentCollectionFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 7 1
1
<?php
2
3
namespace Cv\Factory\Form;
4
5
use Zend\ServiceManager\FactoryInterface;
6
use Zend\ServiceManager\ServiceLocatorInterface;
7
8
class EmploymentCollectionFactory implements FactoryInterface
9
{
10
    
11
    /* (non-PHPdoc)
12
     * @see \Zend\ServiceManager\FactoryInterface::createService()
13
    */
14
    public function createService(ServiceLocatorInterface $serviceLocator)
15
    {
16
        $container = new \Core\Form\CollectionContainer('CvEmploymentForm', new \Cv\Entity\Employment());
17
        $container->setLabel(/*@translate */ 'Employment history');
18
        
19
		return $container;
20
    }
21
}
22