Documentation

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

$methods

method => ReflectionMethod[]

private ReflectionMethod $methods

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


        
On this page

Search results