/**
  * Construct a 'received exception' event.
  *
  * @param int             $sequenceNumber The sequence number.
  * @param float           $time           The time at which the event occurred, in seconds since the Unix epoch.
  * @param Exception|Error $exception      The received exception.
  */
 public function __construct($sequenceNumber, $time, $exception)
 {
     parent::__construct($sequenceNumber, $time);
     $this->exception = $exception;
 }
Beispiel #2
0
 /**
  * Construct a new 'called' event.
  *
  * @param int       $sequenceNumber The sequence number.
  * @param float     $time           The time at which the event occurred, in seconds since the Unix epoch.
  * @param callable  $callback       The callback.
  * @param Arguments $arguments      The arguments.
  */
 public function __construct($sequenceNumber, $time, $callback, Arguments $arguments)
 {
     parent::__construct($sequenceNumber, $time);
     $this->callback = $callback;
     $this->arguments = $arguments;
 }