\phpDocumentor\Pipeline\StageTimedStageDecorator

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$decoratedStage
$logger
N/A

Properties

$decoratedStage

$decoratedStage : callable

Type

callable —

$logger

$logger : \Psr\Log\LoggerInterface

Type

\Psr\Log\LoggerInterface

Methods

__construct()

__construct(\Psr\Log\LoggerInterface  $logger, callable  $decoratedStage) : mixed

Parameters

\Psr\Log\LoggerInterface $logger
callable $decoratedStage

Returns

mixed —

__invoke()

__invoke(mixed  $payload) : mixed

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

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

Parameters

mixed $payload

Returns

mixed —