phpOMS/Stdlib/Queue/PriorityMode.php
Dennis Eichhorn 0a8a5c63c5
Some checks failed
Compress images / calibreapp/image-actions (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
fix permissions
2025-04-02 14:15:07 +00:00

39 lines
957 B
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package phpOMS\Stdlib\Queue
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace phpOMS\Stdlib\Queue;
use phpOMS\Stdlib\Base\Enum;
/**
* Priority type enum.
*
* Defines the different priorities in which elements from the queue can be extracted.
*
* @package phpOMS\Stdlib\Queue
* @license OMS License 2.2
* @link https://jingga.app
* @since 1.0.0
*/
abstract class PriorityMode extends Enum
{
public const FIFO = 1; // First in first out
public const LIFO = 2; // Last in first out
public const HIGHEST = 4; // Highest priority first (same as FIFO if all inserted elements got inserted at the same time with the same priority)
public const LOWEST = 8; // Lowest priority first (same as LIFO if all inserted lements got inserted at the same time with the same priority)
}