Arrayable.php 664 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. /*
  8. * This file is part of the overtrue/wechat.
  9. *
  10. * (c) overtrue <i@overtrue.me>
  11. *
  12. * This source file is subject to the MIT license that is bundled
  13. * with this source code in the file LICENSE.
  14. */
  15. namespace ByteDance\Kernel\Contracts;
  16. use ArrayAccess;
  17. /**
  18. * Interface Arrayable.
  19. *
  20. * @author overtrue <i@overtrue.me>
  21. */
  22. interface Arrayable extends ArrayAccess
  23. {
  24. /**
  25. * Get the instance as an array.
  26. *
  27. * @return array
  28. */
  29. public function toArray();
  30. }