12345678910111213141516171819202122232425 |
- <?php
-
- namespace App\Http\Business;
- use App\Http\Business\Commands\AbstractCommand;
- use App\Http\DBO\CommandsDbo;
- use App\Http\DBO\CommandTypesDbo;
-
-
- class CommandsBusiness
- {
- public static function exec(CommandsDbo $command, CommandTypesDbo $type)
- {
-
-
- $class = $type->getClass();
- $cmd = new $class($command);
- return $cmd->exec();
- }
- }
|