ExtendedPropagationGetterInterface
extends
PropagationGetterInterface
in
Interface for getting values from a carrier.
This interface extends the base PropagationGetterInterface to avoid breaking changes.
Table of Contents
Methods
- get() : string|null
- Gets the value of a given key from a carrier.
- getAll() : array<int, string>
- Gets all values of a given key from a carrier.
- keys() : array<int, string>
- Returns the list of all the keys in the carrier.
Methods
get()
Gets the value of a given key from a carrier.
public
get(mixed $carrier, string $key) : string|null
Parameters
- $carrier : mixed
- $key : string
Return values
string|nullgetAll()
Gets all values of a given key from a carrier.
public
getAll(mixed $carrier, string $key) : array<int, string>
Parameters
- $carrier : mixed
- $key : string
Tags
Return values
array<int, string>keys()
Returns the list of all the keys in the carrier.
public
keys(mixed $carrier) : array<int, string>
Parameters
- $carrier : mixed