yxorP Documentation

CommandObserver
in package
implements CommandSubscriber

Observes command documents using the driver's monitoring API.

Interfaces, Classes, Traits and Enums

CommandSubscriber

Table of Contents

$commands  : array<string|int, mixed>
commandFailed()  : void
commandStarted()  : void
commandSucceeded()  : void
observe()  : void

Properties

Methods

commandFailed()

public commandFailed(CommandFailedEvent $event) : void
Parameters
$event : CommandFailedEvent
Return values
void

commandStarted()

public commandStarted(CommandStartedEvent $event) : void
Parameters
$event : CommandStartedEvent
Return values
void

commandSucceeded()

public commandSucceeded(CommandSucceededEvent $event) : void
Parameters
$event : CommandSucceededEvent
Return values
void

observe()

public observe(callable $execution, callable $commandCallback) : void
Parameters
$execution : callable
$commandCallback : callable
Return values
void

Search results