Completed
Push — master ( 0c3139...e3501a )
by Antoine
17s
created

Symfony/Routing/RouteNameResolverInterface.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[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
declare(strict_types=1);
13
14
namespace ApiPlatform\Core\Bridge\Symfony\Routing;
15
16
use ApiPlatform\Core\Exception\InvalidArgumentException;
17
18
/**
19
 * Resolves the Symfony route name associated with a resource.
20
 *
21
 * @author Teoh Han Hui <[email protected]>
22
 */
23
interface RouteNameResolverInterface
24
{
25
    /**
26
     * Finds the route name for a resource.
27
     *
28
     * @param string      $resourceClass
29
     * @param bool|string $operationType
30
     *
31
     * @throws InvalidArgumentException
32
     *
33
     * @return string
34
     */
35
    public function getRouteName(string $resourceClass, $operationType /**, array $context = [] **/): string;
0 ignored issues
show
Unused Code Comprehensibility introduced by
42% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
36
}
37