registration.core.PopupAlertMessage */ class PopupAlertMessage { /** * Generated from protobuf enum NoPopupAlert = 0; */ const NoPopupAlert = 0; /** * Generated from protobuf enum Activation = 1; */ const Activation = 1; /** * Generated from protobuf enum ActivationNoSeat = 2; */ const ActivationNoSeat = 2; /** * Generated from protobuf enum NotSignedIn = 3; */ const NotSignedIn = 3; /** * Generated from protobuf enum SignedInNoSubscription = 4; */ const SignedInNoSubscription = 4; private static $valueToName = [ self::NoPopupAlert => 'NoPopupAlert', self::Activation => 'Activation', self::ActivationNoSeat => 'ActivationNoSeat', self::NotSignedIn => 'NotSignedIn', self::SignedInNoSubscription => 'SignedInNoSubscription', ]; 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); } }