QueueInterface.php 618 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace ModulesGarden\Servers\ProxmoxVps\Core\Queue;
  3. /**
  4. * Interface QueueInterface
  5. * @package ModulesGarden\Servers\ProxmoxVps\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. }