PHP Class Thruway\Call

Exibir arquivo Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
__construct ( Session $callerSession, Thruway\Message\CallMessage $callMessage, Procedure $procedure ) Constructor
getCallMessage ( ) : Thruway\Message\CallMessage Get call message
getCallStart ( ) : string
getCalleeSession ( ) : Session Get callee session
getCallerSession ( ) : Session Get caller session
getCancelMessage ( ) : Thruway\Message\CancelMessage
getInterruptMessage ( ) : Thruway\Message\InterruptMessage
getInvocationMessage ( ) : Thruway\Message\InvocationMessage Get InvocationMessage
getInvocationRequestId ( ) : mixed
getIsProgressive ( ) : boolean Get state is progressive
getProcedure ( ) : Procedure
getRegistration ( ) : Registration Get registration
isProgressive ( ) : boolean Check is progressive
processCancel ( Session $session, Thruway\Message\CancelMessage $msg ) : boolean processCancel processes cancel message from the caller.
processYield ( Session $session, Thruway\Message\YieldMessage $msg ) : boolean Process Yield message
setCallMessage ( Thruway\Message\CallMessage $callMessage ) Set call message
setCalleeSession ( Session $calleeSession ) Set callee session
setCallerSession ( Session $callerSession ) Set caller session
setCancelMessage ( Thruway\Message\CancelMessage $cancelMessage )
setInterruptMessage ( Thruway\Message\InterruptMessage $interruptMessage )
setInvocationMessage ( Thruway\Message\InvocationMessage $invocationMessage ) Set Invocation message
setIsProgressive ( boolean $isProgressive ) update state is progressive
setRegistration ( Registration $registration )

Method Details

__construct() public method

Constructor
public __construct ( Session $callerSession, Thruway\Message\CallMessage $callMessage, Procedure $procedure )
$callerSession Session
$callMessage Thruway\Message\CallMessage
$procedure Procedure

getCallMessage() public method

Get call message
public getCallMessage ( ) : Thruway\Message\CallMessage
return Thruway\Message\CallMessage

getCallStart() public method

public getCallStart ( ) : string
return string

getCalleeSession() public method

Get callee session
public getCalleeSession ( ) : Session
return Session

getCallerSession() public method

Get caller session
public getCallerSession ( ) : Session
return Session

getCancelMessage() public method

public getCancelMessage ( ) : Thruway\Message\CancelMessage
return Thruway\Message\CancelMessage

getInterruptMessage() public method

public getInterruptMessage ( ) : Thruway\Message\InterruptMessage
return Thruway\Message\InterruptMessage

getInvocationMessage() public method

Get InvocationMessage
public getInvocationMessage ( ) : Thruway\Message\InvocationMessage
return Thruway\Message\InvocationMessage

getInvocationRequestId() public method

public getInvocationRequestId ( ) : mixed
return mixed

getIsProgressive() public method

Get state is progressive
public getIsProgressive ( ) : boolean
return boolean

getProcedure() public method

public getProcedure ( ) : Procedure
return Procedure

getRegistration() public method

Get registration
public getRegistration ( ) : Registration
return Registration

isProgressive() public method

Check is progressive
public isProgressive ( ) : boolean
return boolean

processCancel() public method

Return true if the Call should be removed from active calls
public processCancel ( Session $session, Thruway\Message\CancelMessage $msg ) : boolean
$session Session
$msg Thruway\Message\CancelMessage
return boolean

processYield() public method

Process Yield message
public processYield ( Session $session, Thruway\Message\YieldMessage $msg ) : boolean
$session Session
$msg Thruway\Message\YieldMessage
return boolean if we need to keep the call indexed

setCallMessage() public method

Set call message
public setCallMessage ( Thruway\Message\CallMessage $callMessage )
$callMessage Thruway\Message\CallMessage

setCalleeSession() public method

Set callee session
public setCalleeSession ( Session $calleeSession )
$calleeSession Session

setCallerSession() public method

Set caller session
public setCallerSession ( Session $callerSession )
$callerSession Session

setCancelMessage() public method

public setCancelMessage ( Thruway\Message\CancelMessage $cancelMessage )
$cancelMessage Thruway\Message\CancelMessage

setInterruptMessage() public method

public setInterruptMessage ( Thruway\Message\InterruptMessage $interruptMessage )
$interruptMessage Thruway\Message\InterruptMessage

setInvocationMessage() public method

Set Invocation message
public setInvocationMessage ( Thruway\Message\InvocationMessage $invocationMessage )
$invocationMessage Thruway\Message\InvocationMessage

setIsProgressive() public method

update state is progressive
public setIsProgressive ( boolean $isProgressive )
$isProgressive boolean

setRegistration() public method

public setRegistration ( Registration $registration )
$registration Registration