Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 4 |
| BeforeMiddleware | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
| handle | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Qmp\Laravel\CommandsLaravel\Middleware\Library\Exemple; |
| 4 | |
| 5 | use Closure; |
| 6 | use Qmp\Laravel\CommandsLaravel\Middleware\Core\Interfaces\IOConnectorInterface; |
| 7 | use Qmp\Laravel\CommandsLaravel\Middleware\Core\Middleware; |
| 8 | |
| 9 | class BeforeMiddleware extends Middleware |
| 10 | { |
| 11 | /** |
| 12 | * Undocumented function |
| 13 | * |
| 14 | * @param IOConnectorInterface $IOinterface |
| 15 | * @param Closure $next |
| 16 | * @return void |
| 17 | */ |
| 18 | public function handle($IOinterface, $next) |
| 19 | { |
| 20 | $this->setInterface($IOinterface); |
| 21 | $this->data->value = "some value"; |
| 22 | $this->error($this->command->getName()); |
| 23 | return $next($IOinterface); |
| 24 | } |
| 25 | } |