Result.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\DBAL\Abstraction;
  4. use Doctrine\DBAL\Driver\Result as DriverResult;
  5. use Doctrine\DBAL\Exception;
  6. use Traversable;
  7. /**
  8. * Abstraction-level result statement execution result. Provides additional methods on top
  9. * of the driver-level interface.
  10. *
  11. * @deprecated
  12. */
  13. interface Result extends DriverResult
  14. {
  15. /**
  16. * Returns an iterator over the result set rows represented as numeric arrays.
  17. *
  18. * @return Traversable<int,array<int,mixed>>
  19. *
  20. * @throws Exception
  21. */
  22. public function iterateNumeric(): Traversable;
  23. /**
  24. * Returns an iterator over the result set rows represented as associative arrays.
  25. *
  26. * @return Traversable<int,array<string,mixed>>
  27. *
  28. * @throws Exception
  29. */
  30. public function iterateAssociative(): Traversable;
  31. /**
  32. * Returns an iterator over the values of the first column of the result set.
  33. *
  34. * @return Traversable<int,mixed>
  35. *
  36. * @throws Exception
  37. */
  38. public function iterateColumn(): Traversable;
  39. }