Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/http_monitor.proto
namespace Openstatus\Monitor\V1;
use UnexpectedValueException;
/** * HTTP methods supported for monitors. * * Protobuf type <code>openstatus.monitor.v1.HTTPMethod</code> */class HTTPMethod{ /** * Generated from protobuf enum <code>HTTP_METHOD_UNSPECIFIED = 0;</code> */ const HTTP_METHOD_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>HTTP_METHOD_GET = 1;</code> */ const HTTP_METHOD_GET = 1; /** * Generated from protobuf enum <code>HTTP_METHOD_POST = 2;</code> */ const HTTP_METHOD_POST = 2; /** * Generated from protobuf enum <code>HTTP_METHOD_HEAD = 3;</code> */ const HTTP_METHOD_HEAD = 3; /** * Generated from protobuf enum <code>HTTP_METHOD_PUT = 4;</code> */ const HTTP_METHOD_PUT = 4; /** * Generated from protobuf enum <code>HTTP_METHOD_PATCH = 5;</code> */ const HTTP_METHOD_PATCH = 5; /** * Generated from protobuf enum <code>HTTP_METHOD_DELETE = 6;</code> */ const HTTP_METHOD_DELETE = 6; /** * Generated from protobuf enum <code>HTTP_METHOD_TRACE = 7;</code> */ const HTTP_METHOD_TRACE = 7; /** * Generated from protobuf enum <code>HTTP_METHOD_CONNECT = 8;</code> */ const HTTP_METHOD_CONNECT = 8; /** * Generated from protobuf enum <code>HTTP_METHOD_OPTIONS = 9;</code> */ const HTTP_METHOD_OPTIONS = 9;
private static $valueToName = [ self::HTTP_METHOD_UNSPECIFIED => 'HTTP_METHOD_UNSPECIFIED', self::HTTP_METHOD_GET => 'HTTP_METHOD_GET', self::HTTP_METHOD_POST => 'HTTP_METHOD_POST', self::HTTP_METHOD_HEAD => 'HTTP_METHOD_HEAD', self::HTTP_METHOD_PUT => 'HTTP_METHOD_PUT', self::HTTP_METHOD_PATCH => 'HTTP_METHOD_PATCH', self::HTTP_METHOD_DELETE => 'HTTP_METHOD_DELETE', self::HTTP_METHOD_TRACE => 'HTTP_METHOD_TRACE', self::HTTP_METHOD_CONNECT => 'HTTP_METHOD_CONNECT', self::HTTP_METHOD_OPTIONS => 'HTTP_METHOD_OPTIONS', ];
public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; }
public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); }}