1 | <?php |
||
12 | class SetPrefixAndTableName implements Middleware |
||
13 | { |
||
14 | /** |
||
15 | * @param object $command |
||
16 | * @param callable $next |
||
17 | * |
||
18 | * @return mixed |
||
19 | */ |
||
20 | public function execute($command, callable $next) |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Set the entity prefix |
||
30 | * @param $command |
||
31 | * @return mixed |
||
32 | */ |
||
33 | protected function setPrefix($command) |
||
43 | |||
44 | |||
45 | /** |
||
46 | * set the entity table name |
||
47 | * @param $command |
||
48 | * @return string |
||
49 | */ |
||
50 | protected function getTableName($command) |
||
60 | } |
||
61 |