PHP 인터페이스 Kraken\Channel\Protocol\ProtocolInterface

파일 보기 프로젝트 열기: kraken-php/framework 0 사용 예제들

공개 메소드들

메소드 설명
getAll ( ) : mixed[] Get all fields of protocol in form of an array.
getDestination ( ) : string Return protocol destination.
getException ( ) : string Return protocol exception.
getMessage ( ) : string Return protocol message.
getOrigin ( ) : string Return protocol origin.
getPid ( ) : string Return protocol ID.
getTimestamp ( ) : integer Return protocol timestamp.
getType ( ) : string Return protocol type.
setAll ( mixed[] $args = [], boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set all fields of protocol simultaneously.
setDestination ( string $destination, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set destination of protocol.
setException ( string $exception, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set exception of protocol.
setMessage ( string $message, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set message of protocol.
setOrigin ( string $origin, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set origin of protocol.
setPid ( string $pid, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set ID of protocol.
setTimestamp ( integer $timestamp, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set timestamp of protocol.
setType ( string $type, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface Set type of protocol.

메소드 상세

getAll() 공개 메소드

Get all fields of protocol in form of an array.
public getAll ( ) : mixed[]
리턴 mixed[]

getDestination() 공개 메소드

Return protocol destination.
public getDestination ( ) : string
리턴 string

getException() 공개 메소드

Return protocol exception.
public getException ( ) : string
리턴 string

getMessage() 공개 메소드

Return protocol message.
public getMessage ( ) : string
리턴 string

getOrigin() 공개 메소드

Return protocol origin.
public getOrigin ( ) : string
리턴 string

getPid() 공개 메소드

Return protocol ID.
public getPid ( ) : string
리턴 string

getTimestamp() 공개 메소드

Return protocol timestamp.
public getTimestamp ( ) : integer
리턴 integer

getType() 공개 메소드

Return protocol type.
public getType ( ) : string
리턴 string

setAll() 공개 메소드

Set all fields of protocol simultaneously.
public setAll ( mixed[] $args = [], boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$args mixed[]
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setDestination() 공개 메소드

This method sets destination only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setDestination ( string $destination, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$destination string
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setException() 공개 메소드

This method sets exception only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setException ( string $exception, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$exception string
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setMessage() 공개 메소드

This method sets message only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setMessage ( string $message, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$message string
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setOrigin() 공개 메소드

This method sets origin only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setOrigin ( string $origin, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$origin string
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setPid() 공개 메소드

This method sets ID only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setPid ( string $pid, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$pid string
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setTimestamp() 공개 메소드

This method sets timestamp only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setTimestamp ( integer $timestamp, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$timestamp integer
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface

setType() 공개 메소드

This method sets type only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setType ( string $type, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$type string
$reassign boolean
리턴 Kraken\Channel\Protocol\ProtocolInterface