@param string $outOfBand

@return mixed|null
549742
protected function xOpen($outOfBand = '')
    {
        if ($this->isOpen) {
            return null;
        }

        $args = $this->frameBuilder->xOpen($outOfBand);
        $this->sendMethodFrame(array(20, 10), $args);
        return $this->wait(
            array(
                 "20,11" //Channel.openOk
            )
        );
    }
1323925
public function get($name)
    {
        if (!isset($this->arguments[$name])) {
            throw new \OutOfBoundsException(sprintf('"%s" is not part of context.', $name));
        }

        return $this->arguments[$name];
    }
1280700
public function getOption($key)
    {
        if (!isset($this->options[ $key ])) {
            throw new \OutOfBoundsException("Option {$key} is not set.");
        }

        return $this->options[ $key ];
    }
948457
public function offsetGet($offset)
    {
        $this->invoke();
        if (! isset($this->result->body[$offset])) {
            throw new OutOfBoundsException("[${offset}] for object[" . get_class($this->result) . ']', 400);
        }

        return $this->result->body[$offset];
    }
17976
protected function getClient(array $settings)
    {
        if (empty($settings['credential_id'])) {
            throw new OutOfRangeException('Credential ID is empty in Google client settings');
        }

        $client = $this->getApiModule()->getGoogleClient($settings['credential_id']);
        $client->setApplicationName('Analytics Reporting');
        $client->setScopes(array('https://www.googleapis.com/auth/analytics.readonly'));

        return $client;
    }
151663
public function get(string $data)
    {
        $entry = $this->data->get($data);

        if (is_null($entry)) {
            throw new \OutOfBoundsException("{$entry} is a invalid key for closure shared data");
        }

        return $entry;
    }
1245888
private function getOutOfBoundsException($position = null)
    {
        return new OutOfBoundsException(
            sprintf('Invalid token position (%d)', $position !== null ? $position : $this->position)
        );
    }
692027
public function get($key)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return $value;
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		throw new \OutOfBoundsException('Configuration setting not found: "' . $key . '"');
	}
253264
public function getStage(int $index) : Stage
    {
        if (! isset($this->stages[$index])) {
            throw new OutOfRangeException(sprintf('Could not find stage with index %d.', $index));
        }

        return $this->stages[$index];
    }
267501
public function current(): Logger
    {
        if (null === ($id = key($this->keys))) {
            throw new \OutOfRangeException('Current position of pointer is out of range.');
        }
        return $this->offsetGet($id);
    }
206941
public function offsetGet($offset)
    {
        if (isset($this->imports[$offset])) {
            return $this->sortedAssets($offset);
        }
        throw new OutOfBoundsException("Group $offset not found");
    }
320746
public function getParameterType(string $key)
    {
        if (!array_key_exists($key, $this->params))
            throw new OutOfRangeException("Invalid key: $key");

        return $this->param_types[$key];
    }
1274385
public function getConversions($unit)
    {
        if (!isset($this->units[$unit]['base'])) {
            throw new OutOfBoundsException('Unit is not set');
        }

        $units = array();

        foreach ($this->units as $key => $value) {
            if (isset($value['base']) && $value['base'] === $this->units[$unit]['base']) {
                array_push($units, $key);
            }
        }

        return $units;
    }
280901
public function take($idx)
    {
        self::mustBeInteger($idx, 'Index');

        if ($idx instanceof N) {
            $idx = $idx->int;
        }

        if (!$this->exist($idx)) {
            throw new \OutOfRangeException(
                'Given '. $idx .' index does not exist!'
            );
        }

        return $this->value[$idx];
    }
1153830
public function offsetGet(int $offset)
    {
        if (!isset($this->list[$offset])) {
            throw new \OutOfRangeException('Offset does not exist');
        }

        return $this->list[$offset];
    }
609836
public function offsetGet($offset)
	{
		if(empty($this->tokens[$offset]))
		{
			throw new \OutOfBoundsException('No token found at offset ' . $offset);
		}

		return $this->tokens[$offset];
	}
530184
public function getChildKeys(): array
    {
        $snapshot = $this->shallow()->getSnapshot();

        if (\is_array($value = $snapshot->getValue())) {
            return array_keys($value);
        }

        throw new OutOfRangeException(sprintf('%s has no children with keys', $this));
    }