Dispatcher
in package
Table of Contents
Properties
- $contextFactory : ContextFactory
- $delimiter : string
- $docBlockFactory : DocBlockFactory
- $methods : ReflectionMethod
- method => ReflectionMethod[]
- $target : object
Methods
- __construct() : mixed
- dispatch() : mixed
- Calls the appropriate method handler for an incoming Message
Properties
$contextFactory
private
ContextFactory
$contextFactory
$delimiter
private
string
$delimiter
$docBlockFactory
private
DocBlockFactory
$docBlockFactory
$methods
method => ReflectionMethod[]
private
ReflectionMethod
$methods
$target
private
object
$target
Methods
__construct()
public
__construct(object $target[, string $delimiter = '->' ]) : mixed
Parameters
- $target : object
-
The target object that should receive the method calls
- $delimiter : string = '->'
-
A delimiter for method calls on properties, for example someProperty->someMethod
dispatch()
Calls the appropriate method handler for an incoming Message
public
dispatch(string|object $msg) : mixed
Parameters
- $msg : string|object
-
The incoming message