| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/colorkeysstudio/wp-content/plugins/woocommerce/src/Internal/POS/ |
Upload File : |
<?php
declare( strict_types = 1 );
namespace Automattic\WooCommerce\Internal\POS;
defined( 'ABSPATH' ) || exit;
/**
* Enum-style class for the assignable POS staff presets.
*
* Presets are UI-curated bundles of `woocommerce_pos_*` capabilities (Cashier / Manager /
* Admin); see Capabilities::capabilities_for_preset(). Kept under the POS
* namespace rather than the shared `Enums` namespace because presets are a
* UI-level grouping that may change as the granular-caps model matures, not a
* stable store-wide vocabulary.
*
* Constant class rather than a native PHP enum so it stays within WooCommerce's
* PHP 7.4 minimum.
*
* @since 11.0.0
* @internal
*/
final class POSPreset {
/**
* Cashier preset.
*
* @var string
*/
public const CASHIER = 'pos_cashier';
/**
* Manager preset.
*
* @var string
*/
public const MANAGER = 'pos_manager';
/**
* Admin preset.
*
* @var string
*/
public const ADMIN = 'pos_admin';
/**
* All assignable presets, in ascending capability order.
*
* @return string[]
*
* @since 11.0.0
*/
public static function get_all(): array {
return array(
self::CASHIER,
self::MANAGER,
self::ADMIN,
);
}
}