ameliabooking
/
vendor
/
league
/
tactician
/
src
/
Handler
/
MethodNameInflector
/
MethodNameInflector.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
MethodNameInflector.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace League\Tactician\Handler\MethodNameInflector; |
| 4 | |
| 5 | /** |
| 6 | * Deduce the method name to call on the command handler based on the command |
| 7 | * and handler instances. |
| 8 | */ |
| 9 | interface MethodNameInflector |
| 10 | { |
| 11 | /** |
| 12 | * Return the method name to call on the command handler and return it. |
| 13 | * |
| 14 | * @param object $command |
| 15 | * @param object $commandHandler |
| 16 | * |
| 17 | * @return string |
| 18 | */ |
| 19 | public function inflect($command, $commandHandler); |
| 20 | } |
| 21 |