Pop\Shipping\Adapter\Usps::setContainer PHP Метод

setContainer() публичный Метод

Set container
public setContainer ( string $container = 'RECTANGULAR' ) : void
$container string
Результат 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.');
        }
    }