ReflectionClass::getConstants
( excerpt from http://php.net/manual/en/reflectionclass.getconstants.php )
public function getConstants(): darray<string, mixed>;
Gets defined constants from a class. Warning: This function is currently not documented; only its argument list is available.
Returns
array
- An array of constants. Constant name in key, constant value in value.