SolutionsRepository.php 368 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace NunoMaduro\Collision\Contracts;
  4. use Spatie\Ignition\Contracts\Solution;
  5. use Throwable;
  6. /**
  7. * @internal
  8. */
  9. interface SolutionsRepository
  10. {
  11. /**
  12. * Gets the solutions from the given `$throwable`.
  13. *
  14. * @return array<int, Solution>
  15. */
  16. public function getFromThrowable(Throwable $throwable): array;
  17. }