QueueInterface.php 608 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\Core\Queue;
  3. /**
  4. * Interface QueueInterface
  5. * @package ModulesGarden\ProxmoxAddon\Core\Queue
  6. */
  7. interface QueueInterface
  8. {
  9. /**
  10. * @param $job
  11. * @param string $data
  12. * @param int $parentId
  13. * @param null $relType
  14. * @param null $relId
  15. * @param null $customId
  16. * @return mixed
  17. */
  18. public function push($job, $data = '', $parentId = 0, $relType = null, $relId = null, $customId = null);
  19. /**
  20. * @return mixed
  21. */
  22. public function pop();
  23. /**
  24. * @return mixed
  25. */
  26. public function count();
  27. }