HandlerDescriptor
in package
FinalYes
Describes a handler and the possible associated options, such as `from_transport`, `bus`, etc.
Tags
Table of Contents
Properties
- $batchHandler : mixed
- $handler : Closure
- $name : string
- $options : array<string|int, mixed>
Methods
- __construct() : mixed
- getBatchHandler() : BatchHandlerInterface|null
- getHandler() : callable
- getName() : string
- getOption() : mixed
Properties
$batchHandler
private
mixed
$batchHandler
= null
$handler
private
Closure
$handler
$name
private
string
$name
$options
private
array<string|int, mixed>
$options
Methods
__construct()
public
__construct(callable $handler[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $handler : callable
- $options : array<string|int, mixed> = []
getBatchHandler()
public
getBatchHandler() : BatchHandlerInterface|null
Return values
BatchHandlerInterface|nullgetHandler()
public
getHandler() : callable
Return values
callablegetName()
public
getName() : string
Return values
stringgetOption()
public
getOption(string $option) : mixed
Parameters
- $option : string