Api/Service.php
static public function getLabel($code)
    {
        static::isValid($code);

        switch ($code) {
            case static::EBP :
                return 'Euro Business Parcel';
            case static::GBP :
                return 'Global Business Parcel';
            case static::EP :
                return 'Express Parcel Guaranteed';
            case static::SHD :
                return 'Shop Delivery Service';
            case static::FDF :
                return 'Flex Delivery Service';
            case static::BP :
            default:
                return 'Business Parcel';
        }
    }
static public function getLabel($code)
    {
        static::isValid($code);

        switch ($code) {
            case static::EBP :
                return 'Euro Business Parcel';
            case static::GBP :
                return 'Global Business Parcel';
            case static::EP :
                return 'Express Parcel Guaranteed';
            case static::SHD :
                return 'Shop Delivery Service';
            case static::FDF :
                return 'Flex Delivery Service';
            case static::BP :
            default:
                return 'Business Parcel';
        }
    }
static public function getLabel ( $ code ) { static :: isValid ( $ code ) ; switch ( $ code ) { case static :: EBP : return 'Euro Business Parcel' ; case static :: GBP : return 'Global Business Parcel' ; case static :: EP : return 'Express Parcel Guaranteed' ; case static :: SHD : return 'Shop Delivery Service' ; case static :: FDF : return 'Flex Delivery Service' ; case static :: BP : default : return 'Business Parcel' ; } }
Returns the label for the given product code.

@param string $code

@return string
Returns the label for the given product code .