src/Core/Enum.php
public function getConstants(bool $includeDefault = false): array
    {
        $constants = (new \ReflectionClass($this))->getConstants();

        if (!$includeDefault) {
            unset($constants['__default']);
        }

        return $constants;
    }
public function getConstants(bool $includeDefault = false): array
    {
        $constants = (new \ReflectionClass($this))->getConstants();

        if (!$includeDefault) {
            unset($constants['__default']);
        }

        return $constants;
    }
public function getConstants ( bool $ includeDefault = false ) : array { $ constants = ( new \ ReflectionClass ( $ this ) ) -> getConstants ( ) ; if ( ! $ includeDefault ) { unset ( $ constants [ '__default' ] ) ; } return $ constants ; }
Returns an array of possible class values.

@param bool $includeDefault
@return array
Returns an array of possible class values .