| 1 | <?php |
||
| 10 | trait CommandFactoryTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Execute the strategy and return the command. |
||
| 14 | * |
||
| 15 | * @param \Nubs\Sensible\Strategy\StrategyInterface $strategy The strategy |
||
| 16 | * to locate a command with. |
||
| 17 | * @return string The command to execute. |
||
| 18 | * @throws \Exception if the strategy fails to find a command. |
||
| 19 | */ |
||
| 20 | protected function getCommand(StrategyInterface $strategy) |
||
| 29 | } |
||
| 30 |