mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Convert some constants to enums
This commit is contained in:
parent
06425d3dd6
commit
ee7c8343dd
52 changed files with 282 additions and 268 deletions
9
lib/HttpMethod.php
Normal file
9
lib/HttpMethod.php
Normal 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';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue