Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 4 |
| AddSubProcess | |
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\Monitoring; |
| 4 | |
| 5 | use Closure; |
| 6 | use Qmp\Laravel\CommandsLaravel\Middleware\Core\Middleware; |
| 7 | use Qmp\Laravel\CommandsLaravel\Models\CommandMonitoring; |
| 8 | |
| 9 | class AddSubProcess extends Middleware |
| 10 | { |
| 11 | /** |
| 12 | * Undocumented variable |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | protected $parentIdArgument = 'parentId'; |
| 17 | |
| 18 | /** |
| 19 | * Undocumented function |
| 20 | * |
| 21 | * @param Closure $next |
| 22 | * @return mixed |
| 23 | */ |
| 24 | public function handle($IOinterface, $next) |
| 25 | { |
| 26 | $this->setInterface($IOinterface); |
| 27 | |
| 28 | $structure = CreateParentProcess::getCommandStructure(...[...$this->commandInformations(), $this->getId()]); |
| 29 | CommandMonitoring::where('_id', $this->getParentId())->push('subProcess', $structure); |
| 30 | |
| 31 | return $next($IOinterface); |
| 32 | } |
| 33 | } |