# image-optimization/1.7.4/vendor/elementor/wp-one-package/src/Common/BasicEnum.php

Image Optimizer – Compress Images and Convert to WebP or AVIF, version 1.7.4. 41 lines.

- Page: https://pluginprobe.com/plugins/image-optimization/1.7.4/code/vendor/elementor/wp-one-package/src/Common/BasicEnum.php
- Raw: https://pluginprobe.com/plugins/image-optimization/1.7.4/raw/vendor/elementor/wp-one-package/src/Common/BasicEnum.php
- Modified: 2026-01-20T08:04:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-optimization/1.7.4/code/vendor/elementor/wp-one-package/src/Common/BasicEnum.php#L10-L20`.

```php
<?php

namespace ElementorOne\Common;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/*
 * BasicEnum class
 */
abstract class BasicEnum {

	/**
	 * Entries
	 * @var array
	 */
	private static array $entries = [];

	/**
	 * @throws \ReflectionException
	 */
	public static function get_values(): array {
		return array_values( self::get_entries() );
	}

	/**
	 * @throws \ReflectionException
	 */
	protected static function get_entries(): array {
		$caller = get_called_class();

		if ( ! array_key_exists( $caller, self::$entries ) ) {
			$reflect = new \ReflectionClass( $caller );
			self::$entries[ $caller ] = $reflect->getConstants();
		}

		return self::$entries[ $caller ];
	}
}

```
