SolutionsRepository::getFromThrowable()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of Collision.
5
 *
6
 * (c) Nuno Maduro <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace NunoMaduro\Collision\Contracts;
13
14
use Facade\IgnitionContracts\Solution;
15
use Throwable;
16
17
/**
18
 * This is an Collision Solutions Repository contract.
19
 *
20
 * @author Nuno Maduro <[email protected]>
21
 */
22
interface SolutionsRepository
23
{
24
    /**
25
     * Gets the solutions from the given `$throwable`.
26
     *
27
     * @return array<int, Solution>
0 ignored issues
show
Documentation introduced by
The doc-type array<int, could not be parsed: Expected ">" at position 5, but found "end of type". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
28
     */
29
    public function getFromThrowable(Throwable $throwable): array;
30
}
31