Stackdriver Debugger Client - Class ExtendedSourceContext (1.8.0)

Reference documentation and code samples for the Stackdriver Debugger Client class ExtendedSourceContext.

An ExtendedSourceContext is a SourceContext combined with additional details describing the context.

Example:

use Google\Cloud\Debugger\ExtendedSourceContext;

$extendedSourceContext = new ExtendedSourceContext($sourceContext, [
    'key' => 'value'
]);

Namespace

Google \ Cloud \ Debugger

Methods

__construct

Instantiate a new ExtendedSourceContext.

Parameters
NameDescription
context Google\Cloud\Debugger\SourceContext

Any source context.

labels array

Labels with user defined metadata. An object containing a list of "key": value pairs.

context

Returns the contained context

Example:

$context = $extendedSourceContext->context();
Returns
TypeDescription
Google\Cloud\Debugger\SourceContext

info

Return a serializable version of this object

Returns
TypeDescription
array