protected function clearParcel(Shipment\ShipmentParcelInterface $parcel)
    {
        if (empty($parcel->getTrackingNumber()) && !$parcel->hasLabels()) {
            return false;
        }

        $parcel->setTrackingNumber(null);

        foreach ($parcel->getLabels() as $label) {
            $parcel->removeLabel($label);
        }

        return true;
    }
protected function clearParcel(Shipment\ShipmentParcelInterface $parcel)
    {
        if (empty($parcel->getTrackingNumber()) && !$parcel->hasLabels()) {
            return false;
        }

        $parcel->setTrackingNumber(null);

        foreach ($parcel->getLabels() as $label) {
            $parcel->removeLabel($label);
        }

        return true;
    }
protected function clearParcel ( Shipment \ ShipmentParcelInterface $ parcel ) { if ( empty ( $ parcel -> getTrackingNumber ( ) ) && ! $ parcel -> hasLabels ( ) ) { return false ; } $ parcel -> setTrackingNumber ( null ) ; foreach ( $ parcel -> getLabels ( ) as $ label ) { $ parcel -> removeLabel ( $ label ) ; } return true ; }
Clears the parcel data.

@param Shipment\ShipmentParcelInterface $parcel

@return bool
Clears the parcel data .