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

JsonDecoder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A decode() 0 4 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