AlwaysTrueSolutionProvider.php 456 B

1234567891011121314151617181920
  1. <?php
  2. namespace Facade\Ignition\Tests\Exceptions;
  3. use Facade\IgnitionContracts\BaseSolution;
  4. use Facade\IgnitionContracts\HasSolutionsForThrowable;
  5. use Throwable;
  6. class AlwaysTrueSolutionProvider implements HasSolutionsForThrowable
  7. {
  8. public function canSolve(Throwable $throwable): bool
  9. {
  10. return true;
  11. }
  12. public function getSolutions(Throwable $throwable): array
  13. {
  14. return [new BaseSolution('Base Solution')];
  15. }
  16. }