HandleClassNameInflector
extends ClassNameInflector
in package
Assumes the method is handle + the last portion of the class name.
Examples:
- \MyGlobalCommand => $handler->handleMyGlobalCommand()
- \My\App\TaskCompletedCommand => $handler->handleTaskCompletedCommand()
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