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.8 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;
/** * PageTheme defines the visual theme of the status page. * * Protobuf type <code>openstatus.status_page.v1.PageTheme</code> */class PageTheme{ /** * Generated from protobuf enum <code>PAGE_THEME_UNSPECIFIED = 0;</code> */ const PAGE_THEME_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>PAGE_THEME_SYSTEM = 1;</code> */ const PAGE_THEME_SYSTEM = 1; /** * Generated from protobuf enum <code>PAGE_THEME_LIGHT = 2;</code> */ const PAGE_THEME_LIGHT = 2; /** * Generated from protobuf enum <code>PAGE_THEME_DARK = 3;</code> */ const PAGE_THEME_DARK = 3;
private static $valueToName = [ self::PAGE_THEME_UNSPECIFIED => 'PAGE_THEME_UNSPECIFIED', self::PAGE_THEME_SYSTEM => 'PAGE_THEME_SYSTEM', self::PAGE_THEME_LIGHT => 'PAGE_THEME_LIGHT', self::PAGE_THEME_DARK => 'PAGE_THEME_DARK', ];
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); }}