# plausible-analytics/trunk/src/Client/lib/Lib/GuzzleHttp/MessageFormatterInterface.php

Plausible Analytics, version trunk. 19 lines.

- Page: https://pluginprobe.com/plugins/plausible-analytics/trunk/code/src/Client/lib/Lib/GuzzleHttp/MessageFormatterInterface.php
- Raw: https://pluginprobe.com/plugins/plausible-analytics/trunk/raw/src/Client/lib/Lib/GuzzleHttp/MessageFormatterInterface.php
- Modified: 2025-12-09T16:18:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/plausible-analytics/trunk/code/src/Client/lib/Lib/GuzzleHttp/MessageFormatterInterface.php#L10-L20`.

```php
<?php

namespace Plausible\Analytics\WP\Client\Lib\GuzzleHttp;

use Plausible\Analytics\WP\Client\Lib\Psr\Http\Message\RequestInterface;
use Plausible\Analytics\WP\Client\Lib\Psr\Http\Message\ResponseInterface;

interface MessageFormatterInterface
{
    /**
     * Returns a formatted message string.
     *
     * @param RequestInterface       $request  Request that was sent
     * @param ResponseInterface|null $response Response that was received
     * @param \Throwable|null        $error    Exception that was received
     */
	public function format( RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null ): string;
}

```
