Stackdriver Debugger Client - Class ExtendedSourceContext (1.8.8)

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
Name Description
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
Type Description
Google\Cloud\Debugger\SourceContext

info

Return a serializable version of this object

Returns
Type Description
array