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.2 kB · 67 lines
PHP
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/page_subscriber.proto
namespace Openstatus\Status_page\V1;
use UnexpectedValueException;
/** * SubscriberSource indicates how the subscription was created. * * Protobuf type <code>openstatus.status_page.v1.SubscriberSource</code> */class SubscriberSource{ /** * Generated from protobuf enum <code>SUBSCRIBER_SOURCE_UNSPECIFIED = 0;</code> */ const SUBSCRIBER_SOURCE_UNSPECIFIED = 0; /** * Created by the user themselves via the status-page subscribe form. * * Generated from protobuf enum <code>SUBSCRIBER_SOURCE_SELF_SIGNUP = 1;</code> */ const SUBSCRIBER_SOURCE_SELF_SIGNUP = 1; /** * Created by the page vendor (dashboard user), skipping verification. * * Generated from protobuf enum <code>SUBSCRIBER_SOURCE_VENDOR = 2;</code> */ const SUBSCRIBER_SOURCE_VENDOR = 2; /** * Imported from a third-party provider (Atlassian Statuspage, Better Stack, Instatus). * * Generated from protobuf enum <code>SUBSCRIBER_SOURCE_IMPORT = 3;</code> */ const SUBSCRIBER_SOURCE_IMPORT = 3;
private static $valueToName = [ self::SUBSCRIBER_SOURCE_UNSPECIFIED => 'SUBSCRIBER_SOURCE_UNSPECIFIED', self::SUBSCRIBER_SOURCE_SELF_SIGNUP => 'SUBSCRIBER_SOURCE_SELF_SIGNUP', self::SUBSCRIBER_SOURCE_VENDOR => 'SUBSCRIBER_SOURCE_VENDOR', self::SUBSCRIBER_SOURCE_IMPORT => 'SUBSCRIBER_SOURCE_IMPORT', ];
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); }}