AbstractTransport
in package
implements
TransportInterface
AbstractYes
Tags
Table of Contents
Interfaces
Constants
- HOST = 'localhost'
Properties
- $client : mixed
- $host : mixed
- $port : mixed
- $dispatcher : mixed
Methods
- __construct() : mixed
- send() : SentMessage
- setHost() : $this
- setPort() : $this
- doSend() : SentMessage
- getDefaultHost() : string
- getEndpoint() : string
Constants
HOST
protected
mixed
HOST
= 'localhost'
Properties
$client
protected
mixed
$client
$host
protected
mixed
$host
$port
protected
mixed
$port
$dispatcher
private
mixed
$dispatcher
Methods
__construct()
public
__construct([HttpClientInterface $client = null ][, EventDispatcherInterface $dispatcher = null ]) : mixed
Parameters
- $client : HttpClientInterface = null
- $dispatcher : EventDispatcherInterface = null
send()
public
send(MessageInterface $message) : SentMessage
Parameters
- $message : MessageInterface
Return values
SentMessagesetHost()
public
setHost(string|null $host) : $this
Parameters
- $host : string|null
Return values
$thissetPort()
public
setPort(int|null $port) : $this
Parameters
- $port : int|null
Return values
$thisdoSend()
protected
abstract doSend(MessageInterface $message) : SentMessage
Parameters
- $message : MessageInterface
Return values
SentMessagegetDefaultHost()
protected
getDefaultHost() : string
Return values
stringgetEndpoint()
protected
getEndpoint() : string