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.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/assertions.proto
namespace Openstatus\Monitor\V1;
use UnexpectedValueException;
/** * NumberComparator defines comparison operations for numeric values. * * Protobuf type <code>openstatus.monitor.v1.NumberComparator</code> */class NumberComparator{ /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_UNSPECIFIED = 0;</code> */ const NUMBER_COMPARATOR_UNSPECIFIED = 0; /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_EQUAL = 1;</code> */ const NUMBER_COMPARATOR_EQUAL = 1; /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_NOT_EQUAL = 2;</code> */ const NUMBER_COMPARATOR_NOT_EQUAL = 2; /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_GREATER_THAN = 3;</code> */ const NUMBER_COMPARATOR_GREATER_THAN = 3; /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_GREATER_THAN_OR_EQUAL = 4;</code> */ const NUMBER_COMPARATOR_GREATER_THAN_OR_EQUAL = 4; /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_LESS_THAN = 5;</code> */ const NUMBER_COMPARATOR_LESS_THAN = 5; /** * Generated from protobuf enum <code>NUMBER_COMPARATOR_LESS_THAN_OR_EQUAL = 6;</code> */ const NUMBER_COMPARATOR_LESS_THAN_OR_EQUAL = 6;
private static $valueToName = [ self::NUMBER_COMPARATOR_UNSPECIFIED => 'NUMBER_COMPARATOR_UNSPECIFIED', self::NUMBER_COMPARATOR_EQUAL => 'NUMBER_COMPARATOR_EQUAL', self::NUMBER_COMPARATOR_NOT_EQUAL => 'NUMBER_COMPARATOR_NOT_EQUAL', self::NUMBER_COMPARATOR_GREATER_THAN => 'NUMBER_COMPARATOR_GREATER_THAN', self::NUMBER_COMPARATOR_GREATER_THAN_OR_EQUAL => 'NUMBER_COMPARATOR_GREATER_THAN_OR_EQUAL', self::NUMBER_COMPARATOR_LESS_THAN => 'NUMBER_COMPARATOR_LESS_THAN', self::NUMBER_COMPARATOR_LESS_THAN_OR_EQUAL => 'NUMBER_COMPARATOR_LESS_THAN_OR_EQUAL', ];
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); }}