PHPackages                             germania-kg/tracking - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. germania-kg/tracking

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

germania-kg/tracking
====================

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

Since Jan 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/Tracking)[ Packagist](https://packagist.org/packages/germania-kg/tracking)[ RSS](/packages/germania-kg-tracking/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (9)Used By (1)

Germania KG · Tracking
======================

[](#germania-kg--tracking)

**Classes, interfaces and traits for dealing with shipment tracking information**

[![Packagist](https://camo.githubusercontent.com/fa91ccded401043b4183c00a34cc8981dab25f59291fe278b091788a636b0bb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f747261636b696e672e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/tracking)[![PHP version](https://camo.githubusercontent.com/f55db2dae8abf8becbdc6151ad3056e1b1cb473045ef09923981bb0ccc362bce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f747261636b696e672e737667)](https://packagist.org/packages/germania-kg/tracking)[![Tests](https://github.com/GermaniaKG/Tracking/actions/workflows/tests.yml/badge.svg)](https://github.com/GermaniaKG/Tracking/actions/workflows/tests.yml)

Installation with Composer
--------------------------

[](#installation-with-composer)

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

Usage
-----

[](#usage)

### Interfaces and Traits

[](#interfaces-and-traits)

#### TrackingInfoInterface

[](#trackinginfointerface)

The *TrackingInfoInterface* provides two methods, **getTrackingID** and **getTrackingLink**.

#### TrackingInfoProviderInterface

[](#trackinginfoproviderinterface)

The *TrackingInfoProviderInterface* provides a **getTrackingInfo** method which returns *TrackingInfoInterface* or *null*.

#### TrackingInfoProviderTrait

[](#trackinginfoprovidertrait)

The *TrackingInfoProviderTrait* introduces a public property **$tracking\_info** and a public method **getTrackingInfo** which fulfills the *TrackingInfoProviderInterface*.

#### TrackingInfoAwareInterface

[](#trackinginfoawareinterface)

The *TrackingInfoAwareInterface* extends *TrackingInfoProviderInterface* and provides a **setTrackingInfo** method which accepts *TrackingInfoInterface*.

#### TrackingInfoProviderTrait

[](#trackinginfoprovidertrait-1)

The *TrackingInfoProviderTrait* uses *TrackingInfoProviderTrait* and additionally provides setTrackingInfo a public **setTrackingInfo** method which fulfills the *TrackingInfoAwareInterface*.

### Classes

[](#classes)

#### TrackingInfo class

[](#trackinginfo-class)

The *TrackingInfo* class extends **TrackingInfoAbstract** which implements *TrackingInfoInterface*. It additionally provides setter methods **setTrackingID** and **setTrackingLink:**

```
