Nexus API Reference

Baggage
in package

Read onlyYes
FinalYes
Tags
psalm-api
psalm-immutable

Immutable W3C Baggage: a set of cross-cutting string key/value pairs that propagate alongside trace context, independent of sampling.

Table of Contents

Properties

$values  : array<string|int, mixed>

Methods

__construct()  : mixed
all()  : array<string, string>
empty()  : self
get()  : string|null
isEmpty()  : bool
with()  : self

Properties

$values

public array<string|int, mixed> $values

Methods

__construct()

public __construct(array<string, string> $values) : mixed
Parameters
$values : array<string, string>

all()

public all() : array<string, string>
Return values
array<string, string>

empty()

public static empty() : self
Return values
self

get()

public get(string $key) : string|null
Parameters
$key : string
Return values
string|null

isEmpty()

public isEmpty() : bool
Return values
bool

with()

public with(string $key, string $value) : self
Parameters
$key : string
$value : string
Return values
self

        
On this page

Search results