Elastification PHP Client API
Interface

Elastification\Client\Transport\TransportInterface

interface TransportInterface

The transport itself.

It should hide the complete implementation behind the three interfaces {see TransportRequestInterface},{@see TransportResponseInterface} and this one.

Methods

TransportRequestInterface createRequest(string $httpMethod)

TransportResponseInterface send(TransportRequestInterface $request)

Details

at line 36
public TransportRequestInterface createRequest(string $httpMethod)

Parameters

string $httpMethod The http method to use.

Return Value

TransportRequestInterface

at line 44
public TransportResponseInterface send(TransportRequestInterface $request)

Parameters

TransportRequestInterface $request The configured request to send.

Return Value

TransportResponseInterface