xhStatIncome.php 672 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace common\models;
  3. class xhStatIncome extends xhBaseModel
  4. {
  5. /**
  6. * @inheritdoc
  7. */
  8. public static function tableName()
  9. {
  10. return 'xhStatIncome';
  11. }
  12. /**
  13. * @inheritdoc
  14. */
  15. public function rules()
  16. {
  17. return [
  18. [['time', 'merchantId','addTime'], 'integer'],
  19. [['amount',], 'number'],
  20. ];
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function attributeLabels()
  26. {
  27. return [
  28. 'id' => 'ID',
  29. 'time' => 'Time',
  30. 'amount' => 'Amount',
  31. 'addTime' => 'addTime',
  32. 'merchantId' => 'Merchant ID'
  33. ];
  34. }
  35. }