Documentation

ClassNameInflector
in package
implements MethodNameInflector

Assumes the method is only the last portion of the class name.

Examples:

  • \MyGlobalCommand => $handler->myGlobalCommand()
  • \My\App\CreateUser => $handler->createUser()

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
Return values
string

Search results