ParserFactory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
wmc 3
lcom 0
cbo 3
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createCsvParser() 0 4 1
A createJsonParser() 0 4 1
A createOfxParser() 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\Domain\Factory;
22
23
use Mmanager\Utils\JsonParser;
24
use Mmanager\Utils\CsvParser;
25
use Mmanager\Utils\OfxParser;
26
27
class ParserFactory
28
{
29
	public function createCsvParser(): CsvParser
30
	{
31
		return new CsvParser();
32
	}
33
	public function createJsonParser(): JsonParser
34
	{
35
		return new JsonParser();
36
	}
37
	public function createOfxParser(): OfxParser
38
	{
39
		return new OfxParser();
40
	}
41
}