Passed
Push — master ( c9c1dd...eb7532 )
by Aimeos
18:11
created

Base::setConfigFE()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
/**
5
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
6
 * @copyright Metaways Infosystems GmbH, 2011
7
 * @copyright Aimeos (aimeos.org), 2015-2023
8
 * @package MShop
9
 * @subpackage Service
10
 */
11
12
13
namespace Aimeos\MShop\Service\Provider\Delivery;
14
15
16
/**
17
 * Abstract class for all delivery provider implementations.
18
 *
19
 * @package MShop
20
 * @subpackage Service
21
 */
22
abstract class Base extends \Aimeos\MShop\Service\Provider\Base implements Iface
23
{
24
	/**
25
	 * Feature constant if querying for status updates for an order is supported.
26
	 */
27
	const FEAT_QUERY = 1;
28
29
30
	/**
31
	 * Sets the delivery attributes in the given service.
32
	 *
33
	 * @param \Aimeos\MShop\Order\Item\Service\Iface $orderServiceItem Order service item that will be added to the basket
34
	 * @param array $attributes Attribute key/value pairs entered by the customer during the checkout process
35
	 * @return \Aimeos\MShop\Order\Item\Service\Iface Order service item with attributes added
36
	 */
37
	public function setConfigFE( \Aimeos\MShop\Order\Item\Service\Iface $orderServiceItem,
38
		array $attributes ) : \Aimeos\MShop\Order\Item\Service\Iface
39
	{
40
		return $orderServiceItem->addAttributeItems( $this->attributes( $attributes, 'delivery' ) );
41
	}
42
}
43