openstatus.status_report.v1.StatusReportStatus */ class StatusReportStatus { /** * Generated from protobuf enum STATUS_REPORT_STATUS_UNSPECIFIED = 0; */ const STATUS_REPORT_STATUS_UNSPECIFIED = 0; /** * Generated from protobuf enum STATUS_REPORT_STATUS_INVESTIGATING = 1; */ const STATUS_REPORT_STATUS_INVESTIGATING = 1; /** * Generated from protobuf enum STATUS_REPORT_STATUS_IDENTIFIED = 2; */ const STATUS_REPORT_STATUS_IDENTIFIED = 2; /** * Generated from protobuf enum STATUS_REPORT_STATUS_MONITORING = 3; */ const STATUS_REPORT_STATUS_MONITORING = 3; /** * Generated from protobuf enum STATUS_REPORT_STATUS_RESOLVED = 4; */ 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); } }