Arrayable.php 491 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\base;
  8. /**
  9. * Arrayable should be implemented by classes that need to be represented in array format.
  10. *
  11. * @author Qiang Xue <[email protected]>
  12. * @since 2.0
  13. */
  14. interface Arrayable
  15. {
  16. /**
  17. * Converts the object into an array.
  18. * @return array the array representation of this object
  19. */
  20. public function toArray();
  21. }