Pop\Shipping\Adapter\Ups::setService PHP Метод

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

Set service
public setService ( string $code ) : void
$code string
Результат void
    public function setService($code)
    {
        if (!array_key_exists($code, self::$services)) {
            throw new Exception('Error: That service code does not exist.');
        }
        $this->service = $code;
    }