public function getTrackingUrl()
    {
        if (!isset($this->parcelnumber)) {
            throw new RuntimeException("Shipment has no parcel number.");
        }

        return sprintf(Api::TRACKING_URL, $this->parcelnumber);
    }
public function getTrackingUrl()
    {
        if (!isset($this->parcelnumber)) {
            throw new RuntimeException("Shipment has no parcel number.");
        }

        return sprintf(Api::TRACKING_URL, $this->parcelnumber);
    }
public function getTrackingUrl ( ) { if ( ! isset ( $ this -> parcelnumber ) ) { throw new RuntimeException ( "Shipment has no parcel number." ) ; } return sprintf ( Api :: TRACKING_URL , $ this -> parcelnumber ) ; }
Returns the tracking url.

@return string

@throws RuntimeException
Returns the tracking url .