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.
2.3 kB · 66 lines
PHP
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_report/v1/status_report.proto
namespace Openstatus\Status_report\V1;
use UnexpectedValueException;
/** * StatusReportStatus represents the current state of a status report. * * Protobuf type <code>openstatus.status_report.v1.StatusReportStatus</code> */class StatusReportStatus{ /** * Generated from protobuf enum <code>STATUS_REPORT_STATUS_UNSPECIFIED = 0;</code> */ const STATUS_REPORT_STATUS_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>STATUS_REPORT_STATUS_INVESTIGATING = 1;</code> */ const STATUS_REPORT_STATUS_INVESTIGATING = 1; /** * Generated from protobuf enum <code>STATUS_REPORT_STATUS_IDENTIFIED = 2;</code> */ const STATUS_REPORT_STATUS_IDENTIFIED = 2; /** * Generated from protobuf enum <code>STATUS_REPORT_STATUS_MONITORING = 3;</code> */ const STATUS_REPORT_STATUS_MONITORING = 3; /** * Generated from protobuf enum <code>STATUS_REPORT_STATUS_RESOLVED = 4;</code> */ const STATUS_REPORT_STATUS_RESOLVED = 4;
private static $valueToName = [ self::STATUS_REPORT_STATUS_UNSPECIFIED => 'STATUS_REPORT_STATUS_UNSPECIFIED', self::STATUS_REPORT_STATUS_INVESTIGATING => 'STATUS_REPORT_STATUS_INVESTIGATING', self::STATUS_REPORT_STATUS_IDENTIFIED => 'STATUS_REPORT_STATUS_IDENTIFIED', self::STATUS_REPORT_STATUS_MONITORING => 'STATUS_REPORT_STATUS_MONITORING', self::STATUS_REPORT_STATUS_RESOLVED => 'STATUS_REPORT_STATUS_RESOLVED', ];
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); }}