Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ShippingPackagingPauseService | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| pause | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Domain\ShippingPackaging\Services; |
| 4 | |
| 5 | use App\Events\ServiceProcessed; |
| 6 | use App\Models\ShippingPackaging\ShippingPackaging; |
| 7 | use App\Models\User; |
| 8 | |
| 9 | readonly class ShippingPackagingPauseService |
| 10 | { |
| 11 | public function pause(ShippingPackaging $shippingPackaging, User $user): void |
| 12 | { |
| 13 | $shippingPackaging->pause(); |
| 14 | $shippingPackaging->touch(); |
| 15 | |
| 16 | ServiceProcessed::dispatch(self::class, $user); |
| 17 | } |
| 18 | } |