Thruway\Peer\Client::getCaller PHP Method

getCaller() public method

Get caller
public getCaller ( ) : Caller
return Thruway\Role\Caller
    public function getCaller()
    {
        return $this->caller;
    }

Usage Example

Example #1
0
 /**
  * Call
  *
  * @param string $procedureName
  * @param array|mixed $arguments
  * @param array|mixed $argumentsKw
  * @param array|mixed $options
  * @return \React\Promise\Promise
  */
 public function call($procedureName, $arguments = null, $argumentsKw = null, $options = null)
 {
     return $this->peer->getCaller()->call($this, $procedureName, $arguments, $argumentsKw, $options);
 }