| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | * Sends the details of all orders to the ERP system for further processing |
||
| 32 | * |
||
| 33 | * @param \Aimeos\MShop\Order\Item\Iface[] $orders List of order invoice objects |
||
| 34 | * @return \Aimeos\Map Updated order items |
||
| 35 | */ |
||
| 36 | public function processBatch( iterable $orders ) : \Aimeos\Map |
||
| 37 | { |
||
| 38 | foreach( $orders as $key => $order ) { |
||
| 39 | $orders[$key] = $this->object()->process( $order ); |
||
| 40 | } |
||
| 41 | |||
| 42 | return map( $orders ); |
||
| 43 | } |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * Sets the delivery attributes in the given service. |
||
| 48 | * |
||
| 49 | * @param \Aimeos\MShop\Order\Item\Base\Service\Iface $orderServiceItem Order service item that will be added to the basket |
||
| 50 | * @param array $attributes Attribute key/value pairs entered by the customer during the checkout process |
||
| 51 | * @return \Aimeos\MShop\Order\Item\Base\Service\Iface Order service item with attributes added |
||
| 52 | */ |
||
| 53 | public function setConfigFE( \Aimeos\MShop\Order\Item\Base\Service\Iface $orderServiceItem, |
||
| 57 | } |
||
| 58 | } |
||
| 59 |