TestUserListModel.php 608 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Tioncico
  5. * Date: 2019/10/22 0022
  6. * Time: 15:08
  7. */
  8. namespace EasySwoole\ORM\Tests\models;
  9. use EasySwoole\ORM\AbstractModel;
  10. use EasySwoole\Utility\Str;
  11. /**
  12. * Class TestUserModel
  13. * @package EasySwoole\ORM\Tests
  14. * @property $id
  15. * @property $name
  16. * @property $age
  17. * @property $addTime
  18. * @property $state
  19. */
  20. class TestUserListModel extends AbstractModel
  21. {
  22. protected $tableName='user_test_list';
  23. /**
  24. * 非模型属性字段 获取器,可用于append
  25. */
  26. public function getAppendOneAttr()
  27. {
  28. return "siam_append";
  29. }
  30. }