ameliabooking
/
vendor
/
league
/
tactician
/
src
/
Handler
/
MethodNameInflector
/
InvokeInflector.php
ClassNameInflector.php
7 years ago
HandleClassNameInflector.php
7 years ago
HandleClassNameWithoutSuffixInflector.php
7 years ago
HandleInflector.php
7 years ago
InvokeInflector.php
7 years ago
MethodNameInflector.php
7 years ago
InvokeInflector.php
19 lines
| 1 | <?php |
| 2 | |
| 3 | namespace League\Tactician\Handler\MethodNameInflector; |
| 4 | |
| 5 | /** |
| 6 | * Handle command by calling the __invoke magic method. Handy for single |
| 7 | * use classes or closures. |
| 8 | */ |
| 9 | class InvokeInflector implements MethodNameInflector |
| 10 | { |
| 11 | /** |
| 12 | * {@inheritdoc} |
| 13 | */ |
| 14 | public function inflect($command, $commandHandler) |
| 15 | { |
| 16 | return '__invoke'; |
| 17 | } |
| 18 | } |
| 19 |