src/Plista/Core/Enum.php
public static final function values() {
		$calledClass = get_called_class();

		// let's check the cache so we don't have to call reflection constantly
		if (empty(self::$cachedValues[$calledClass])) {
			$class = new \ReflectionClass($calledClass);
			self::$cachedValues[$calledClass] = $class->getConstants();
		}

		return self::$cachedValues[$calledClass];
	}
public static final function values() {
		$calledClass = get_called_class();

		// let's check the cache so we don't have to call reflection constantly
		if (empty(self::$cachedValues[$calledClass])) {
			$class = new \ReflectionClass($calledClass);
			self::$cachedValues[$calledClass] = $class->getConstants();
		}

		return self::$cachedValues[$calledClass];
	}
public static final function values ( ) { $ calledClass = get_called_class ( ) ; // let's check the cache so we don't have to call reflection constantly if ( empty ( self :: $ cachedValues [ $ calledClass ] ) ) { $ class = new \ ReflectionClass ( $ calledClass ) ; self :: $ cachedValues [ $ calledClass ] = $ class -> getConstants ( ) ; } return self :: $ cachedValues [ $ calledClass ] ; }
Returns a list of values this Enum can take. The keys are the defined constants and the
values are their respective values.

@return array
Returns a list of values this Enum can take . The keys are the defined constants and the values are their respective values .