Pop\Shipping\Adapter\Usps::setContainer PHP Method

setContainer() public method

Set container
public setContainer ( string $container = 'RECTANGULAR' ) : void
$container string
return void
    public function setContainer($container = 'RECTANGULAR')
    {
        if ($container == 'RECTANGULAR' || $container == 'NONRECTANGULAR') {
            $this->container = $container;
        } else {
            throw new Exception('Error: The container type must be RECTANGULAR or NONRECTANGULAR.');
        }
    }