Completed
Push — master ( ad5456...f93915 )
by Amine
10s
created

JsonDecoder::decode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace Tarsana\Command\Helpers\Decoders;
2
3
use Tarsana\Command\Interfaces\Helpers\DecoderInterface;
4
5
6
class JsonDecoder implements DecoderInterface {
7
8
    public function decode(string $text) : array
9
    {
10
        return json_decode($text, true);
11
    }
12
13
}
14