Issues (125)

src/ClassResolverInterface.php (1 issue)

1
<?php
2
3
/**
4
 * It's free open-source software released under the MIT License.
5
 *
6
 * @author Anatoly Nekhay <[email protected]>
7
 * @copyright Copyright (c) 2018, Anatoly Nekhay
8
 * @license https://github.com/sunrise-php/http-router/blob/master/LICENSE
9
 * @link https://github.com/sunrise-php/http-router
10
 */
11
12
declare(strict_types=1);
13
14
namespace Sunrise\Http\Router;
15
16
use InvalidArgumentException;
17
18
/**
19
 * @since 3.0.0
20
 */
21
interface ClassResolverInterface
22
{
23
    /**
24
     * Tries to resolve the given named class
25
     *
26
     * @param class-string<T> $className
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<T> at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<T>.
Loading history...
27
     *
28
     * @return T
29
     *
30
     * @template T of object
31
     *
32
     * @throws InvalidArgumentException
33
     */
34
    public function resolveClass(string $className): object;
35
}
36