registration.core.Status */ class Status { /** * Generated from protobuf enum Success = 0; */ const Success = 0; /** * Generated from protobuf enum ExpiredLicense = 1; */ const ExpiredLicense = 1; /** * Generated from protobuf enum DeactivatedLicense = 2; */ const DeactivatedLicense = 2; /** * Generated from protobuf enum DisabledLicense = 3; */ const DisabledLicense = 3; /** * Generated from protobuf enum NoSeats = 4; */ const NoSeats = 4; /** * Generated from protobuf enum NoCopies = 5; */ const NoCopies = 5; /** * Generated from protobuf enum MissingLicense = 6; */ const MissingLicense = 6; /** * Generated from protobuf enum TimeDiscrepancy = 7; */ const TimeDiscrepancy = 7; /** * Generated from protobuf enum BibleMissing = 8; */ const BibleMissing = 8; /** * Generated from protobuf enum BibleNotPurchased = 9; */ const BibleNotPurchased = 9; /** * Generated from protobuf enum BibleActivationMissing = 10; */ const BibleActivationMissing = 10; /** * Generated from protobuf enum BibleDeactivated = 11; */ const BibleDeactivated = 11; /** * Generated from protobuf enum NetworkError = 12; */ const NetworkError = 12; /** * Generated from protobuf enum IOError = 13; */ const IOError = 13; /** * Generated from protobuf enum NotInitialized = 14; */ const NotInitialized = 14; /** * Generated from protobuf enum UnknownError = 15; */ const UnknownError = 15; private static $valueToName = [ self::Success => 'Success', self::ExpiredLicense => 'ExpiredLicense', self::DeactivatedLicense => 'DeactivatedLicense', self::DisabledLicense => 'DisabledLicense', self::NoSeats => 'NoSeats', self::NoCopies => 'NoCopies', self::MissingLicense => 'MissingLicense', self::TimeDiscrepancy => 'TimeDiscrepancy', self::BibleMissing => 'BibleMissing', self::BibleNotPurchased => 'BibleNotPurchased', self::BibleActivationMissing => 'BibleActivationMissing', self::BibleDeactivated => 'BibleDeactivated', self::NetworkError => 'NetworkError', self::IOError => 'IOError', self::NotInitialized => 'NotInitialized', self::UnknownError => 'UnknownError', ]; 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); } }