Pop\Shipping\Adapter\Ups::setPackage PHP Method

setPackage() public method

Set package type
public setPackage ( string $code ) : void
$code string
return void
    public function setPackage($code)
    {
        if (!array_key_exists($code, self::$packagingTypes)) {
            throw new Exception('Error: That package code does not exist.');
        }
        $this->packageType = $code;
    }