phpDocumentor

TimedStageDecorator
in package

FinalYes

Table of Contents

Properties

$decoratedStage  : callable
$logger  : LoggerInterface

Methods

__construct()  : mixed
__invoke()  : mixed
Starts a timer before entering the stage, and logs the expired time afterwards.

Properties

Methods

__construct()

public __construct(LoggerInterface $logger, callable $decoratedStage) : mixed
Parameters
$logger : LoggerInterface
$decoratedStage : callable

__invoke()

Starts a timer before entering the stage, and logs the expired time afterwards.

public __invoke(mixed $payload) : mixed

Since we support any stage, we do not know what payload is received or returned; so both are mixed.

Parameters
$payload : mixed

        
On this page

Search results