Responsable.php 375 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * 相应接口.
  4. *
  5. * @author nj <nj@gmail.com>
  6. * @date 2019-11-03 13:48:34
  7. */
  8. namespace App\Contracts;
  9. interface Responsable
  10. {
  11. /**
  12. * Create an HTTP response that represents the object.
  13. *
  14. * @param \Hyperf\HttpServer\Contract\RequestInterface|mixed $request
  15. * @return mixed
  16. */
  17. public function toResponse($request = null);
  18. }