IdenticalPropertyNamingStrategyFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
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 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 4 1
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/jms-serializer-module
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\JmsSerializerModule\NamingStrategy;
7
8
use JMS\Serializer\Naming\IdenticalPropertyNamingStrategy;
9
use Zend\ServiceManager\FactoryInterface;
10
use Zend\ServiceManager\ServiceLocatorInterface;
11
12
/**
13
 * Class IdenticalPropertyNamingStrategyFactory
14
 *
15
 * @package Nnx\JmsSerializerModule\NamingStrategy
16
 */
17
class IdenticalPropertyNamingStrategyFactory implements FactoryInterface
18
{
19
    /**
20
     * @inheritdoc
21
     *
22
     * @param ServiceLocatorInterface $serviceLocator
23
     *
24
     * @return IdenticalPropertyNamingStrategy
25
     */
26
    public function createService(ServiceLocatorInterface $serviceLocator)
27
    {
28
        return new IdenticalPropertyNamingStrategy();
29
    }
30
}
31