TestB.php 401 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @author gaobinzhan <gaobinzhan@gmail.com>
  4. */
  5. namespace EasySwoole\ORM\Tests\models;
  6. use EasySwoole\ORM\AbstractModel;
  7. class TestB extends AbstractModel
  8. {
  9. protected $tableName = 'test_b';
  10. public function getBNameAttr($value, $data)
  11. {
  12. return $value . '-bar-b';
  13. }
  14. public function getCNameAttr($value, $data)
  15. {
  16. return $value . '-bar-c';
  17. }
  18. }