TaskAction.php 353 B

123456789101112131415
  1. <?php
  2. declare(strict_types=1);
  3. namespace app\miniapi\service\driver;
  4. use plugin\saiadmin\app\model\water\WaterDelivery;
  5. /** Commands execute only inside DriverService's authorized, locked transaction. */
  6. interface TaskAction
  7. {
  8. public function fields(): array;
  9. public function execute(WaterDelivery $task, array $input, int $user): array;
  10. }