Stackdriver Trace Client - Class Attributes (1.4.11)

Reference documentation and code samples for the Stackdriver Trace Client class Attributes.

This plain PHP class represents a Link resource. A set of attributes, each in the format [KEY]:[VALUE].

This class implements PHP's ArrayAccess, allowing access via the array syntax (example below).

Attributes are available to {@see}, {@see}, and {@see}.

Example:

$attributes['foo'] = 'bar';
echo $attributes['foo'];

Methods

offsetSet

Callback for \ArrayAccess []= setter.

Parameters
NameDescription
offset string
value mixed

offsetExists

Callback for \ArrayAccess isset.

Parameter
NameDescription
offset string

offsetUnset

Callback for \ArrayAccess unset.

Parameter
NameDescription
offset string

offsetGet

Callback for \ArrayAccess [$key] getter.

Parameter
NameDescription
offset string

info

Returns a serializable array representing this Link.

Returns
TypeDescription
array