OpenTelemetry PHP

UsesHttpClientTrait

Table of Contents

Properties

$client  : ClientInterface|null
$request  : RequestInterface|null
$requestFactory  : RequestFactoryInterface|null
$response  : ResponseInterface|null
$streamFactory  : StreamFactoryInterface|null

Methods

createMock()  : MockObject
createRequestFactoryInterfaceMock()  : RequestFactoryInterface|MockObject
createRequestInterfaceMock()  : RequestInterface|MockObject
createResponseInterfaceMock()  : ResponseInterface|MockObject
getClientInterfaceMock()  : ClientInterface|MockObject
getRequestFactoryInterfaceMock()  : RequestFactoryInterface|MockObject
getRequestInterfaceMock()  : RequestInterface|MockObject
getStreamFactoryInterfaceMock()  : StreamFactoryInterface|MockObject

Properties

Methods

createMock()

protected abstract createMock(string $originalClassName) : MockObject
Parameters
$originalClassName : string
Return values
MockObject

createRequestFactoryInterfaceMock()

protected createRequestFactoryInterfaceMock() : RequestFactoryInterface|MockObject
Tags
psalm-suppress

MismatchingDocblockReturnType

Return values
RequestFactoryInterface|MockObject

createRequestInterfaceMock()

protected createRequestInterfaceMock([int $status = 200 ]) : RequestInterface|MockObject
Parameters
$status : int = 200
Tags
psalm-suppress

MismatchingDocblockReturnType

Return values
RequestInterface|MockObject

createResponseInterfaceMock()

protected createResponseInterfaceMock([int $status = 200 ]) : ResponseInterface|MockObject
Parameters
$status : int = 200
Tags
psalm-suppress

MismatchingDocblockReturnType

Return values
ResponseInterface|MockObject

getClientInterfaceMock()

protected getClientInterfaceMock() : ClientInterface|MockObject
Tags
psalm-suppress

MismatchingDocblockReturnType

Return values
ClientInterface|MockObject

getRequestFactoryInterfaceMock()

protected getRequestFactoryInterfaceMock() : RequestFactoryInterface|MockObject
Tags
psalm-suppress

MismatchingDocblockReturnType

psalm-suppress

PossiblyInvalidPropertyAssignmentValue

Return values
RequestFactoryInterface|MockObject

getRequestInterfaceMock()

protected getRequestInterfaceMock([int $status = 200 ]) : RequestInterface|MockObject
Parameters
$status : int = 200
Tags
psalm-suppress

MismatchingDocblockReturnType

psalm-suppress

PossiblyInvalidPropertyAssignmentValue

Return values
RequestInterface|MockObject

getStreamFactoryInterfaceMock()

protected getStreamFactoryInterfaceMock() : StreamFactoryInterface|MockObject
Tags
psalm-suppress

MismatchingDocblockReturnType

Return values
StreamFactoryInterface|MockObject

        
On this page

Search results