PHPackages                             germania-kg/shipping - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. germania-kg/shipping

ActiveLibrary

germania-kg/shipping
====================

1.1.0(3y ago)017MITPHPPHP ^7.4|^8.0

Since Jan 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/Shipping)[ Packagist](https://packagist.org/packages/germania-kg/shipping)[ RSS](/packages/germania-kg-shipping/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Germania KG · Shipping
======================

[](#germania-kg--shipping)

**Classes and interfaces for dealing with shipment items**

[![Packagist](https://camo.githubusercontent.com/3b0cda43e636399493c7dbd5636449b4b8076118b9222220c36c04eaebd83b20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f7368697070696e672e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/shipping)[![PHP version](https://camo.githubusercontent.com/e26334894643e579a1230c9163a65a3ee1657bc6e0052296db06ddfec8a465d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f7368697070696e672e737667)](https://packagist.org/packages/germania-kg/shipping)[![Tests](https://github.com/GermaniaKG/Shipping/actions/workflows/tests.yml/badge.svg)](https://github.com/GermaniaKG/Shipping/actions/workflows/tests.yml)

Installation
------------

[](#installation)

```
$ composer require germania-kg/shipping
```

Requirements
------------

[](#requirements)

This package requires [germania-kg/tracking](https://packagist.org/packages/germania-kg/tracking) package.

Usage
-----

[](#usage)

### ShipmentItemInterface

[](#shipmentiteminterface)

The **ShipmentItemInterface** extends *Germania\\Shipping\\DeliveryNoteNumberProviderInterface* and *Germania\\Tracking\\TrackingInfoAwareInterface* and *\\JsonSerializable* . So these methods are provided:

- *getDeliveryNoteNumber*
- *getTrackingInfo*
- *setTrackingInfo*
- *jsonSerialize*

### ShipmentItem

[](#shipmentitem)

The **ShipmentItem** class implements *ShipmentItemInterface* and additionally provides setter methods *setTrackingInfo* and *setDeliveryNoteNumber*:

```
