1234567891011121314151617181920 |
- <?php
- namespace Facade\Ignition\Tests\Exceptions;
- use Facade\IgnitionContracts\BaseSolution;
- use Facade\IgnitionContracts\HasSolutionsForThrowable;
- use Throwable;
- class AlwaysTrueSolutionProvider implements HasSolutionsForThrowable
- {
- public function canSolve(Throwable $throwable): bool
- {
- return true;
- }
- public function getSolutions(Throwable $throwable): array
- {
- return [new BaseSolution('Base Solution')];
- }
- }
|