PHP Class Prooph\ServiceBus\Plugin\InvokeStrategy\AbstractInvokeStrategy

Author: Alexander Miertsch ([email protected])
Inheritance: implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
Show file Open project: prooph/service-bus

Protected Properties

Property Type Description
$priority integer

Public Methods

Method Description
__invoke ( Prooph\Common\Event\ActionEvent $e )
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void Attach one or more listeners

Protected Methods

Method Description
canInvoke ( mixed $handler, mixed $message ) : boolean
invoke ( mixed $handler, mixed $message )

Method Details

__invoke() public method

public __invoke ( Prooph\Common\Event\ActionEvent $e )
$e Prooph\Common\Event\ActionEvent

attach() public method

Attach one or more listeners
public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
return void

canInvoke() abstract protected method

abstract protected canInvoke ( mixed $handler, mixed $message ) : boolean
$handler mixed
$message mixed
return boolean

invoke() abstract protected method

abstract protected invoke ( mixed $handler, mixed $message )
$handler mixed
$message mixed

Property Details

$priority protected property

protected int $priority
return integer