public static function getOperators($type)
    {
        if (!in_array($type, self::getTypes())) {
            return [];
        }

        $source = snake_case($type).'_operators';

        return self::$$source;
    }
public static function getOperators($type)
    {
        if (!in_array($type, self::getTypes())) {
            return [];
        }

        $source = snake_case($type).'_operators';

        return self::$$source;
    }
public static function getOperators ( $ type ) { if ( ! in_array ( $ type , self :: getTypes ( ) ) ) { return [ ] ; } $ source = snake_case ( $ type ) . '_operators' ; return self :: $ $ source ; }
Get an string|number|date operators as array|string.

@param string|number|date $type
@param bool               $operator

@return array|string|null
Get an string|number|date operators as array|string .