Convert some constants to enums

This commit is contained in:
Alex Cabal 2024-05-11 13:23:15 -05:00
parent 06425d3dd6
commit ee7c8343dd
52 changed files with 282 additions and 268 deletions

9
lib/HttpMethod.php Normal file
View file

@ -0,0 +1,9 @@
<?
enum HttpMethod: string{
case Delete = 'DELETE';
case Get = 'GET';
case Head = 'HEAD';
case Patch = 'PATCH';
case Post = 'POST';
case Put = 'PUT';
}