- __construct() : mixed
- __invoke() : mixed
- Starts a timer before entering the stage, and logs the expired time afterwards.
private callable $decoratedStage
private LoggerInterface $logger
public __construct(LoggerInterface $logger, callable $decoratedStage) : mixed
- $logger : LoggerInterface
- $decoratedStage : callable
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.
- $payload : mixed