BaseAuth.php 512 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace ln\basic;
  3. use app\Request;
  4. abstract class BaseAuth extends BaseStorage
  5. {
  6. /**
  7. * 获取当前句柄名
  8. * @return string
  9. */
  10. public function getName()
  11. {
  12. return $this->name;
  13. }
  14. /**
  15. * 登陆
  16. * @param Request $request
  17. * @return mixed
  18. */
  19. abstract public function login(Request $request);
  20. /**
  21. * 退出登陆
  22. * @param Request $request
  23. * @return mixed
  24. */
  25. abstract public function logout(Request $request);
  26. }