Completed
Push — master ( 957460...50c887 )
by Florent
02:33
created

JSONSerializationModes::getSupportedSerializationModes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2015 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace Jose;
13
14
/**
15
 * JSON Serialization Modes.
16
 */
17
final class JSONSerializationModes
18
{
19
    const JSON_SERIALIZATION = 'JSON Serialization';
20
    const JSON_COMPACT_SERIALIZATION = 'JSON Compact Serialization';
21
    const JSON_FLATTENED_SERIALIZATION = 'JSON Flattened Serialization';
22
23
    public function getSupportedSerializationModes()
24
    {
25
        return [
26
            self::JSON_COMPACT_SERIALIZATION,
27
            self::JSON_FLATTENED_SERIALIZATION,
28
            self::JSON_SERIALIZATION,
29
        ];
30
    }
31
}
32