public static function getConstants($include_default = false)
    {
        static::loadValues();
        $enumConstants = static::$enumConstants[get_called_class()];
        if (!$include_default) {
            unset($enumConstants['__DEFAULT']);
        }
        return $enumConstants;
    }
public static function getConstants($include_default = false)
    {
        static::loadValues();
        $enumConstants = static::$enumConstants[get_called_class()];
        if (!$include_default) {
            unset($enumConstants['__DEFAULT']);
        }
        return $enumConstants;
    }
public static function getConstants ( $ include_default = false ) { static :: loadValues ( ) ; $ enumConstants = static :: $ enumConstants [ get_called_class ( ) ] ; if ( ! $ include_default ) { unset ( $ enumConstants [ '__DEFAULT' ] ) ; } return $ enumConstants ; }
Get the valid values for this enum
Defaults to constants you define in your subclass
override to provide custom functionality

@param boolean $include_default
@return array
Get the valid values for this enum Defaults to constants you define in your subclass override to provide custom functionality