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.
1.7 kB · 61 lines
PHP
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/status_page.proto
namespace Openstatus\Status_page\V1;
use UnexpectedValueException;
/** * Locale defines the supported languages for a status page. * * Protobuf type <code>openstatus.status_page.v1.Locale</code> */class Locale{ /** * Generated from protobuf enum <code>LOCALE_UNSPECIFIED = 0;</code> */ const LOCALE_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>LOCALE_EN = 1;</code> */ const LOCALE_EN = 1; /** * Generated from protobuf enum <code>LOCALE_FR = 2;</code> */ const LOCALE_FR = 2; /** * Generated from protobuf enum <code>LOCALE_DE = 3;</code> */ const LOCALE_DE = 3;
private static $valueToName = [ self::LOCALE_UNSPECIFIED => 'LOCALE_UNSPECIFIED', self::LOCALE_EN => 'LOCALE_EN', self::LOCALE_FR => 'LOCALE_FR', self::LOCALE_DE => 'LOCALE_DE', ];
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); }}