class LogEntry implements Serializable

Methods

__construct(string $api, RequestInterface $request, float|null $duration, ResponseInterface $response = null, Exception $exception = null)

LogEntry constructor.

string
getApi()

No description

RequestInterface
getRequest()

No description

Exception|null
getException()

No description

float
getDuration()

No description

ResponseInterface|null
getResponse()

No description

bool
isError()

True if the requests threw an error.

serialize()

No description

unserialize($serialized)

No description

Details

at line 53
__construct(string $api, RequestInterface $request, float|null $duration, ResponseInterface $response = null, Exception $exception = null)

LogEntry constructor.

Parameters

string $api
RequestInterface $request
float|null $duration
ResponseInterface $response
Exception $exception

Exceptions

InvalidArgumentException When $api is an unrecognized value

at line 106
string getApi()

Return Value

string

at line 114
RequestInterface getRequest()

Return Value

RequestInterface

at line 122
Exception|null getException()

Return Value

Exception|null

at line 130
float getDuration()

Return Value

float

at line 138
ResponseInterface|null getResponse()

Return Value

ResponseInterface|null

at line 148
bool isError()

True if the requests threw an error.

Return Value

bool

at line 153
serialize()

at line 170
unserialize($serialized)

Parameters

$serialized