move from old repository
This commit is contained in:
		
							
								
								
									
										16
									
								
								enums/Order.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								enums/Order.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<?php
 | 
			
		||||
namespace DatabaseHelper\enums;
 | 
			
		||||
 | 
			
		||||
enum Order
 | 
			
		||||
{
 | 
			
		||||
    case ASC;
 | 
			
		||||
    case DESC;
 | 
			
		||||
 | 
			
		||||
    public function toString(): string {
 | 
			
		||||
        return match ($this) {
 | 
			
		||||
            self::ASC => 'ASC',
 | 
			
		||||
            self::DESC => 'DESC',
 | 
			
		||||
        };
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user