rv.analytics.UI.MainView.Bible.GenerateSlides.TextBoxLocation */ class TextBoxLocation { /** * Generated from protobuf enum TEXT_BOX_LOCATION_UNKNOWN = 0; */ const TEXT_BOX_LOCATION_UNKNOWN = 0; /** * Generated from protobuf enum TEXT_BOX_LOCATION_NONE = 1; */ const TEXT_BOX_LOCATION_NONE = 1; /** * Generated from protobuf enum TEXT_BOX_LOCATION_TEXT_BOX = 2; */ const TEXT_BOX_LOCATION_TEXT_BOX = 2; /** * Generated from protobuf enum TEXT_BOX_LOCATION_WITH_VERSE = 3; */ const TEXT_BOX_LOCATION_WITH_VERSE = 3; private static $valueToName = [ self::TEXT_BOX_LOCATION_UNKNOWN => 'TEXT_BOX_LOCATION_UNKNOWN', self::TEXT_BOX_LOCATION_NONE => 'TEXT_BOX_LOCATION_NONE', self::TEXT_BOX_LOCATION_TEXT_BOX => 'TEXT_BOX_LOCATION_TEXT_BOX', self::TEXT_BOX_LOCATION_WITH_VERSE => 'TEXT_BOX_LOCATION_WITH_VERSE', ]; 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); } }