class Envelope

A message wrapped in an envelope with stamps (configurations, markers, .

..).

Methods

__construct($message, StampInterface ...$stamps)

No description

with(StampInterface ...$stamps)

No description

StampInterface|null
last(string $stampFqcn)

No description

array
all(string $stampFqcn = null)

No description

object
getMessage()

No description

Details

__construct($message, StampInterface ...$stamps)

Parameters

$message
StampInterface ...$stamps

Envelope with(StampInterface ...$stamps)

Parameters

StampInterface ...$stamps

Return Value

Envelope a new Envelope instance with additional stamp

StampInterface|null last(string $stampFqcn)

Parameters

string $stampFqcn

Return Value

StampInterface|null

array all(string $stampFqcn = null)

Parameters

string $stampFqcn

Return Value

array The stamps for the specified FQCN, or all stamps by their class name

object getMessage()

Return Value

object The original message contained in the envelope