BaseImporter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * @name      OpenImporter
4
 * @copyright OpenImporter contributors
5
 * @license   BSD https://opensource.org/licenses/BSD-3-Clause
6
 *
7
 * @version 1.0
8
 */
9
10
namespace Importers;
11
12
use OpenImporter\Configurator;
13
use OpenImporter\Database;
14
15
/**
16
 * The starting point for any step of any importer.
17
 */
18
abstract class BaseImporter
19
{
20
	/** @var \OpenImporter\Database */
21
	protected $db;
22
23
	/** @var \OpenImporter\Configurator */
24
	protected $config;
25
26
	/**
27
	 * BaseImporter constructor.
28
	 *
29
	 * @param Database $db
30
	 * @param Configurator $config
31
	 */
32
	public function __construct($db, $config)
33
	{
34
		$this->db = $db;
35
		$this->config = $config;
36
	}
37
}
38