Completed
Push — master ( 0010c2...5cb668 )
by Aimeos
02:18
created

Done   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A process() 0 4 1
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2017
6
 * @package Controller
7
 * @subpackage Common
8
 */
9
10
11
namespace Aimeos\Controller\Common\Coupon\Import\Csv\Processor;
12
13
14
/**
15
 * End point for the CSV import processors
16
 *
17
 * @package Controller
18
 * @subpackage Common
19
 */
20
class Done
21
	implements \Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface
0 ignored issues
show
Coding Style introduced by
The implements keyword must be on the same line as the class name
Loading history...
22
{
23
	/**
24
	 * Initializes the object
25
	 *
26
	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
27
	 * @param array $mapping Associative list of field position in CSV as key and domain item key as value
28
	 * @param \Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface $object Decorated processor
29
	 */
30
	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $mapping,
31
		\Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface $object = null )
32
	{
33
	}
34
35
36
	/**
37
	 * Saves the coupon code related data to the storage
38
	 *
39
	 * @param \Aimeos\MShop\Coupon\Item\Code\Iface $item Coupon code object
40
	 * @param array $data List of CSV fields with position as key and data as value
41
	 * @return array List of data which hasn't been imported
42
	 */
43
	public function process( \Aimeos\MShop\Coupon\Item\Code\Iface $item, array $data )
44
	{
45
		return $data;
46
	}
47
}
48