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
$decoratedStage
private
callable
$decoratedStage
$logger read-only
private
LoggerInterface
$logger
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