Passed
Push — master ( 5d05b9...5af5d7 )
by Aimeos
05:15
created

Base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2021
6
 * @package MShop
7
 * @subpackage Rule
8
 */
9
10
11
namespace Aimeos\MShop\Rule\Provider\Factory;
12
13
14
/**
15
 * Base class for rule provider implementations
16
 *
17
 * @package MShop
18
 * @subpackage Rule
19
 */
20
abstract class Base
21
	extends \Aimeos\MShop\Rule\Provider\Base
22
{
23
	/**
24
	 * Initializes the object instance
25
	 *
26
	 * PHP 7 fails with a wierd fatal error that decorator constructors must be
27
	 * compatible with the constructor of the factory interface if this
28
	 * intermediate constructor isn't implemented!
29
	 *
30
	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
31
	 * @param \Aimeos\MShop\Rule\Item\Iface $item Rule item object
32
	 */
33
	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Rule\Item\Iface $item )
34
	{
35
		parent::__construct( $context, $item );
36
	}
37
}
38