ChildrenTrait.php 612 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace ModulesGarden\Servers\ProxmoxVps\Core\Queue\Job;
  3. use function ModulesGarden\Servers\ProxmoxVps\Core\Helper\queue;
  4. /**
  5. * Trait ChildrenTrait
  6. * @package ModulesGarden\Servers\ProxmoxVps\Core\Queue\Children
  7. * @version 1.0.0
  8. */
  9. trait ChildrenTrait
  10. {
  11. /**
  12. * @param $job
  13. * @param $arguments
  14. * @param null $relType
  15. * @param null $relId
  16. * @param null $customId
  17. */
  18. protected function addChildToQueue($job, $arguments, $relType = null, $relId = null, $customId = null)
  19. {
  20. queue($job, $arguments, $this->model->id, $relType, $relId, $customId);
  21. }
  22. }