InvokeInflector
in package
implements
MethodNameInflector
Handle command by calling the __invoke magic method. Handy for single use classes or closures.
Interfaces, Classes and Traits
- MethodNameInflector
- Deduce the method name to call on the command handler based on the command and handler instances.
Table of Contents
- inflect() : string
- Return the method name to call on the command handler and return it.
Methods
inflect()
Return the method name to call on the command handler and return it.
public
inflect(mixed $command, mixed $commandHandler) : string
Parameters
- $command : mixed
- $commandHandler : mixed