ArrayableInterface.php 277 B

12345678910111213141516171819
  1. <?php
  2. namespace Elastica;
  3. /**
  4. * Interface for params.
  5. *
  6. *
  7. * @author Evgeniy Sokolov <ewgraf@gmail.com>
  8. */
  9. interface ArrayableInterface
  10. {
  11. /**
  12. * Converts the object to an array.
  13. *
  14. * @return array Object as array
  15. */
  16. public function toArray();
  17. }