Thruway\Procedure::getCallByRequestId PHP Method

getCallByRequestId() public method

Get call by request ID
public getCallByRequestId ( integer $requestId ) : Call | boolean
$requestId integer
return Call | boolean
    public function getCallByRequestId($requestId)
    {
        /* @var $registration \Thruway\Registration */
        foreach ($this->registrations as $registration) {
            $call = $registration->getCallByRequestId($requestId);
            if ($call) {
                return $call;
            }
        }
        return false;
    }

Usage Example

 public function testGetCallWithRequestIdFailure()
 {
     $call = $this->_proc->getCallByRequestId(0);
     $this->assertFalse($call);
 }