Completed
Push — master ( 714b6a...f9d007 )
by Narcotic
06:13
created

SerializationContextFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createSerializationContext() 0 4 1
1
<?php
2
/**
3
 * serializer context factory
4
 */
5
6
namespace Graviton\RestBundle\Serializer;
7
8
use JMS\Serializer\ContextFactory\SerializationContextFactoryInterface;
9
use JMS\Serializer\SerializationContext;
10
11
/**
12
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
13
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
14
 * @link     http://swisscom.ch
15
 */
16
class SerializationContextFactory extends ContextFactoryAbstract implements SerializationContextFactoryInterface
17
{
18
19
    /**
20
     * creates the correct context
21
     *
22
     * @return SerializationContext
23
     */
24
    public function createSerializationContext()
25
    {
26
        return $this->workOnInstance(SerializationContext::create());
27
    }
28
}
29