public function DebugMessageFormatterPluginBase::formatStats in Apigee Edge 8
Formats stats object.
Parameters
\GuzzleHttp\TransferStats $stats: Transfer statistics.
Return value
string Formatted output.
Overrides DebugMessageFormatterPluginInterface::formatStats
2 methods override DebugMessageFormatterPluginBase::formatStats()
- CurlCommandFormatter::formatStats in modules/
apigee_edge_debug/ src/ Plugin/ DebugMessageFormatter/ CurlCommandFormatter.php - Formats stats object.
- FullHttpMessageFormatter::formatStats in modules/
apigee_edge_debug/ src/ Plugin/ DebugMessageFormatter/ FullHttpMessageFormatter.php - Formats stats object.
File
- modules/
apigee_edge_debug/ src/ Plugin/ DebugMessageFormatter/ DebugMessageFormatterPluginBase.php, line 164
Class
- DebugMessageFormatterPluginBase
- Defines a base class for debug message formatter plugins.
Namespace
Drupal\apigee_edge_debug\Plugin\DebugMessageFormatterCode
public function formatStats(TransferStats $stats) : string {
return var_export($this
->getTimeStatsInSeconds($stats), TRUE);
}