@param array $blkioWeightDevice

@return Client
336409
public function setBlkioWeightDevice(array $blkioWeightDevice)
    {
        $this->blkioWeightDevice = $blkioWeightDevice;

        $this->hostConfig = array_merge($this->hostConfig, ['BlkioWeightDevice' => $blkioWeightDevice]);

        return $this;
    }
1369772
public function sendPayload($deviceToken, Payload $payload)
    {
        return $this->socketClient->write(
            $this->createApnMessage($deviceToken, $payload)->getBinaryMessage()
        );
    }
740194
public function build(): SetBlackboxedRangesRequest
	{
		$instance = new SetBlackboxedRangesRequest();
		if ($this->scriptId === null) {
			throw new BuilderException('Property [scriptId] is required.');
		}
		$instance->scriptId = $this->scriptId;
		if ($this->positions === null) {
			throw new BuilderException('Property [positions] is required.');
		}
		$instance->positions = $this->positions;
		return $instance;
	}
769223
public function setRescoreQueryWeight(float $weight): Query
    {
        $query = $this->getParam('query');
        $query['rescore_query_weight'] = $weight;

        return $this->setParam('query', $query);
    }
705660
def blkio_weight_device(val, **kwargs):  # pylint: disable=unused-argument
    '''
    
    '''
    val = helpers.map_vals(val, 'Path', 'Weight')
    for idx in range(len(val)):
        try:
            val[idx]['Weight'] = int(val[idx]['Weight'])
        except (TypeError, ValueError):
            raise SaltInvocationError(
                'Weight \'{Weight}\' for path \'{Path}\' is not an '
                'integer'.format(**val[idx])
            )
    return val
1195451
public static function mock(array $stack = []): ApiClient
    {
        $mock = new MockHandler($stack);

        $handler = HandlerStack::create($mock);

        $client = new Client(['handler' => $handler, 'verify' => false]);

        app()->instance('ej:sdk:guzzle', $client);

        return resolve(__CLASS__);
    }
686572
public function addDeviceGroup(array $data)
    {
        $url = "https://api.weixin.qq.com/shakearound/device/group/adddevice?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, $data);
    }
1062790
public static function post($mKeys = null, $bXssClean = false)
    {
        $aArray = isset($_POST) ? $_POST : [];
        return static::getItemsFromArray($mKeys, $bXssClean, $aArray);
    }
932010
protected function client()
    {
        $dsn = $this->config('dsn');
        if (!$dsn) {
            return null;
        }

        $client = new Raven_Client($dsn);
        $callInstall = $this->config('callInstall');
        if ($callInstall === true) {
            $client->install();
        }

        return $client;
    }
109332
public static function server($mKeys = null, $bXssClean = false)
    {
        $aArray = isset($_SERVER) ? $_SERVER : [];
        return static::getItemsFromArray($mKeys, $bXssClean, $aArray);
    }
358447
public function setBlkioDeviceWriteIOps(array $blkioDeviceWriteIOps)
    {
        $this->blkioDeviceWriteIOps = $blkioDeviceWriteIOps;

        $this->hostConfig = array_merge($this->hostConfig, ['BlkioDeviceWriteIOps' => $blkioDeviceWriteIOps]);

        return $this;
    }
345306
public function make(array $config): Client
    {
        $config = $this->getConfig($config);

        return $this->getClient($config);
    }
477428
public function send($bGraceful = false)
    {
        $aEmail = $this->toArray();
        $aData  = [
            'type'     => $aEmail['sType'],
            'to_id'    => null,
            'to_email' => null,
            'data'     => (object) $aEmail['aData'],
        ];

        if (!empty($aEmail['sSubject']) & empty($aData['data']->email_subject)) {
            $aData['data']->email_subject = $aEmail['sSubject'];
        }

        if (!empty($aEmail['sFromName']) & empty($aData['data']->email_from_name)) {
            $aData['data']->email_from_name = $aEmail['sFromName'];
        }

        if (!empty($aEmail['sFromEmail']) & empty($aData['data']->email_from_email)) {
            $aData['data']->email_from_email = $aEmail['sFromEmail'];
        }

        if (!empty($aEmail['aCc']) & empty($aData['data']->cc)) {
            $aData['data']->cc = $aEmail['aCc'];
        }

        if (!empty($aEmail['aBcc']) & empty($aData['data']->bcc)) {
            $aData['data']->bcc = $aEmail['aBcc'];
        }

        $oEmailer = Factory::service('Emailer', 'nails/module-email');

        foreach ($aEmail['aTo'] as $mUserIdOrEmail) {

            if (is_numeric($mUserIdOrEmail)) {
                $aData['to_id'] = $mUserIdOrEmail;
            } elseif (valid_email($mUserIdOrEmail)) {
                $aData['to_email'] = $mUserIdOrEmail;
            }

            $this->bLastEmailDidSend = $oEmailer->send($aData, $bGraceful);
        }

        return $this;
    }
998644
public function getClient(): ClientInterface
    {
        if ($this->client === null) {
            $this->client = new Client();
        }

        return $this->client;
    }
479775
protected function clientIssueToken(array $parameters, ClientInterface $determinedClient): ResponseInterface
    {
        if ($determinedClient->isClientGrantEnabled() === false) {
            throw new OAuthTokenBodyException(OAuthTokenBodyException::ERROR_UNAUTHORIZED_CLIENT);
        }

        $scope = $this->clientGetScope($parameters);
        list ($isScopeValid, $scopeList, $isScopeModified) =
            $this->clientGetIntegration()->clientValidateScope($determinedClient, $scope);
        if ($isScopeValid === false) {
            throw new OAuthTokenBodyException(OAuthTokenBodyException::ERROR_INVALID_SCOPE);
        }

        $response = $this->clientGetIntegration()->clientCreateAccessTokenResponse(
            $determinedClient,
            $isScopeModified,
            $scopeList,
            $parameters
        );

        return $response;
    }
807533
public function mobifoneCallbackMsisdn()
    {
        try {
            $mobi = new Mobifone($this->vendorDebug);
            $mobi->setConfig($this->providerServices[self::MOBIFONE]);
            $mobi->setListPackage($this->packageSettings[self::MOBIFONE]);
            $mobi->setKeyEncrypt($this->providerServices[self::MOBIFONE][self::MOBIFONE_CSP_CONFIG]['keyEncrypt']);
            $result = $mobi->receivedDataMsisdn();
            if (is_array($result) && isset($result['status']) && $result['status'] == 0) {
                if (isset($result['data'])) {
                    $msisdn          = $result['data']['msisdn'];
                    $telcoData       = $this->phoneDetect->getTelcos();
                    $data_to_session = [
                        self::SESSION_ID_CURRENT_USER_MSISDN    => $this->formatMsisdn($msisdn),
                        self::SESSION_ID_CURRENT_MSISDN         => $this->formatMsisdn($msisdn),
                        self::SESSION_ID_CURRENT_MSISDN_CHANNEL => self::CHANNEL_IS_DETECT,
                        self::SESSION_ID_CURRENT_TELCO_NAME     => $telcoData['telco_name'],
                        self::SESSION_ID_CURRENT_TELCO_ID       => $telcoData['telco_id'],
                        self::SESSION_ID_CURRENT_USER_IP        => $this->Ip->getIpByHaProxy(),
                        self::SESSION_ID_MSISDN_HAS_DETECT      => TRUE
                    ];
                    $this->logger->info(__FUNCTION__, 'Save MSISDN & Telco Data: ', $data_to_session);
                    if (isset($this->objectSession) && $this->objectSession != NULL && is_object($this->objectSession)) {
                        $this->logger->info(__FUNCTION__, 'Session with CI Session Class');
                        $this->objectSession->set_userdata($data_to_session);
                    } else {
                        $this->logger->info(__FUNCTION__, 'Session with The Http Foundation Component');
                        foreach ($data_to_session as $name => $value) {
                            $this->session->set($name, $value);
                        }
                    }
                }
            } else {
                $this->user_is_guest();
                $this->logger->info(__FUNCTION__, 'User is GUEST');
            }
            if (isset($this->objectSession) && $this->objectSession != NULL && is_object($this->objectSession)) {
                $this->logger->info(__FUNCTION__, 'Session with CI Session Class');
                if (!$this->objectSession->has_userdata(self::SESSION_ID_LINK_REDIRECT_MSISDN_DETECT)) {
                    $this->objectSession->set_userdata(self::SESSION_ID_LINK_REDIRECT_MSISDN_DETECT, self::SESSION_VALUE_LINK_REDIRECT_MSISDN_DETECT);
                    Utils::redirect('');
                }
            } else {
                $this->logger->info(__FUNCTION__, 'Session with The Http Foundation Component');
                if (!$this->session->has(self::SESSION_ID_LINK_REDIRECT_MSISDN_DETECT)) {
                    $this->session->set(self::SESSION_ID_LINK_REDIRECT_MSISDN_DETECT, self::SESSION_VALUE_LINK_REDIRECT_MSISDN_DETECT);
                    Utils::redirect('');
                }
            }

            return TRUE;
        }
        catch (\Exception $e) {
            $message = 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
            $this->logger->error(__FUNCTION__, $message);

            return $message;
        }
    }
261724
final public function multicastBinary(string $data, array $clientIds): Promise
    {
        return $this->multicastData($data, true, $clientIds);
    }