ExtSerializer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A serialize() 0 4 1
1
<?php
2
/**
3
 * ExtForms - ExtSerializer.php
4
 *
5
 * Initial version by: MisterX
6
 * Initial version created on: 17.11.2015
7
 */
8
9
namespace Ext\Serializer;
10
11
12
use Ext\SerializableObject;
13
14
class ExtSerializer extends ArraySerializer
15
{
16
    public function serialize(SerializableObject $object)
17
    {
18
        return json_encode(parent::serialize($object),JSON_PRETTY_PRINT | JSON_NUMERIC_CHECK);
19
    }
20
21
}