\phpDocumentor\Parser\MiddlewareStopwatchMiddleware

Summary

Methods
Properties
Constants
__construct()
execute()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
log()
formatMemoryInMegabytes()
formatMemoryInKilobytes()
$memory
$stopwatch
$logger
N/A

Properties

$memory

$memory : int

Type

int — amount of memory used

$stopwatch

$stopwatch : \Symfony\Component\Stopwatch\Stopwatch

Type

\Symfony\Component\Stopwatch\Stopwatch —

$logger

$logger : \Psr\Log\LoggerInterface

Type

\Psr\Log\LoggerInterface —

Methods

__construct()

__construct(\Symfony\Component\Stopwatch\Stopwatch  $stopwatch, \Psr\Log\LoggerInterface  $logger) : mixed

Parameters

\Symfony\Component\Stopwatch\Stopwatch $stopwatch
\Psr\Log\LoggerInterface $logger

Returns

mixed —

execute()

execute(\phpDocumentor\Reflection\Middleware\Command  $command, callable  $next) : object

Executes this middleware class.

Parameters

\phpDocumentor\Reflection\Middleware\Command $command
callable $next

Returns

object —

log()

log(string  $message, string  $priority = LogLevel::INFO, array  $parameters = []) : void

Dispatches a logging request.

Parameters

string $message
string $priority
array $parameters

formatMemoryInMegabytes()

formatMemoryInMegabytes(int  $memory) : string

Parameters

int $memory

Returns

string —

formatMemoryInKilobytes()

formatMemoryInKilobytes(int  $memory) : string

Parameters

int $memory

Returns

string —