You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
501 B
29 lines
501 B
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace App\Enums;
|
|
enum HttpMethod: string {
|
|
case Get = 'GET';
|
|
case Post = 'POST';
|
|
case Put = 'PUT';
|
|
case Head = 'HEAD';
|
|
|
|
case Patch = "PATCH";
|
|
|
|
case Delete = 'Delete';
|
|
public static function values()
|
|
{
|
|
return [
|
|
self::Get,
|
|
self::Post,
|
|
self::Put,
|
|
self::Delete,
|
|
self::Head,
|
|
self::Patch,
|
|
// Add more HTTP methods as needed
|
|
];
|
|
}
|
|
}
|
|
|