17 lines
		
	
	
		
			240 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			240 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace DatabaseHelper\enums;
 | 
						|
 | 
						|
enum Order
 | 
						|
{
 | 
						|
    case ASC;
 | 
						|
    case DESC;
 | 
						|
 | 
						|
    public function toString(): string {
 | 
						|
        return match ($this) {
 | 
						|
            self::ASC => 'ASC',
 | 
						|
            self::DESC => 'DESC',
 | 
						|
        };
 | 
						|
    }
 | 
						|
}
 | 
						|
 |