PHP Class Nats\ConnectionOptions

Datei anzeigen Open project: repejota/phpnats Class Usage Examples

Public Methods

Method Description
__toString ( ) : string Get the options JSON string.
getAddress ( ) : string Get the URI for a server.
getHost ( ) : string Get host.
getLang ( ) : string Get language.
getPass ( ) : string Get password.
getPort ( ) : integer Get port.
getUser ( ) : string Get user.
getVersion ( ) : string Get version.
isPedantic ( ) : boolean Get pedantic.
isReconnect ( ) : boolean Get reconnect.
isVerbose ( ) : boolean Get verbose.
setHost ( string $host ) Set host.
setLang ( string $lang ) Set language.
setPass ( string $pass ) Set password.
setPedantic ( boolean $pedantic ) Set pedantic.
setPort ( integer $port ) Set port.
setReconnect ( boolean $reconnect ) Set reconnect.
setUser ( string $user ) Set user.
setVerbose ( boolean $verbose ) Set verbose.
setVersion ( string $version ) Set version.

Method Details

__toString() public method

Get the options JSON string.
public __toString ( ) : string
return string

getAddress() public method

Get the URI for a server.
public getAddress ( ) : string
return string

getHost() public method

Get host.
public getHost ( ) : string
return string

getLang() public method

Get language.
public getLang ( ) : string
return string

getPass() public method

Get password.
public getPass ( ) : string
return string

getPort() public method

Get port.
public getPort ( ) : integer
return integer

getUser() public method

Get user.
public getUser ( ) : string
return string

getVersion() public method

Get version.
public getVersion ( ) : string
return string

isPedantic() public method

Get pedantic.
public isPedantic ( ) : boolean
return boolean

isReconnect() public method

Get reconnect.
public isReconnect ( ) : boolean
return boolean

isVerbose() public method

Get verbose.
public isVerbose ( ) : boolean
return boolean

setHost() public method

Set host.
public setHost ( string $host )
$host string Host.

setLang() public method

Set language.
public setLang ( string $lang )
$lang string Language.

setPass() public method

Set password.
public setPass ( string $pass )
$pass string Password.

setPedantic() public method

Set pedantic.
public setPedantic ( boolean $pedantic )
$pedantic boolean Pedantic flag.

setPort() public method

Set port.
public setPort ( integer $port )
$port integer Port.

setReconnect() public method

Set reconnect.
public setReconnect ( boolean $reconnect )
$reconnect boolean Reconnect flag.

setUser() public method

Set user.
public setUser ( string $user )
$user string User.

setVerbose() public method

Set verbose.
public setVerbose ( boolean $verbose )
$verbose boolean Verbose flag.

setVersion() public method

Set version.
public setVersion ( string $version )
$version string Version number.