JsonParser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 4 1
1
<?php
2
3
/**
4
 * m'Manager | Invoices Management System
5
 * 
6
 * This content is released under the Proprietary License (Proprietary)
7
 *
8
 * Copyright (c) 2017, Eric Claver AKAFFOU - All Rights Reserved
9
 * Unauthorized copying of this file, via any medium is strictly prohibited
10
 * Proprietary and confidential
11
 * 
12
 * @package m'Manager
13
 * @author  Eric Claver AKAFFOU
14
 * @copyright   Copyright (c) 2017, on'Eric Computing, Inc. (https://www.onericcomputing.com/)
15
 * @license https://www.mmanager.fr  Proprietary License
16
 * @link    https://codecanyon.net/item/mmanager-invoices-management-system/19866435?s_rank=1
17
 * @since   Version 1.0.0
18
 * @filesource
19
 */
20
21
namespace Mmanager\Utils;
22
23
use Mmanager\Contract\ParserInterface;
24
25
class JsonParser implements ParserInterface 
26
{
27
	public function parse(string $input): array
28
	{
29
		return json_decode($input, true);
30
	}
31
}