KafkaOffset.php 737 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for collection "kafka_offset".
  6. *
  7. * @property \MongoId|string $_id
  8. */
  9. class KafkaOffset extends \yii\mongodb\ActiveRecord {
  10. /**
  11. * @inheritdoc
  12. */
  13. public static function collectionName()
  14. {
  15. return ['local', 'kafka_offset'];
  16. }
  17. /**
  18. * @inheritdoc
  19. */
  20. public function attributes()
  21. {
  22. return [
  23. '_id', 'name', 'offset',
  24. ];
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. ];
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. '_id' => 'ID',
  41. ];
  42. }
  43. }