TestUserListGetterModel.php 616 B

12345678910111213141516171819202122232425262728293031323334353637
  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 TestUserListGetterModel extends AbstractModel
  21. {
  22. protected $tableName='user_test_list';
  23. public function getAddTimeAttr()
  24. {
  25. return 123;
  26. }
  27. public function setAddTimeAttr()
  28. {
  29. return '2019-11-2 23:48:44';
  30. }
  31. }