Issues (20)

Mezon/Router/ParamRoutes.php (1 issue)

1
<?php
2
declare(strict_types = 1);
3
namespace Mezon\Router;
4
5
/**
6
 * Trait ParamRoutes
7
 *
8
 * @package Router
9
 * @author Dodonov A.A.
10
 * @version v.1.0 (2021/09/27)
11
 * @copyright Copyright (c) 2021, http://aeon.su
12
 */
13
trait ParamRoutes
14
{
15
16
    /**
17
     * List of non static routes
18
     *
19
     * @var array<string, array<array-key, array{pattern: string, callback: array{0: string, 1:string}|callable|string}|array{bunch: array<int<1, max>, array{callback: mixed, pattern: string}>}>>
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<string, array<arra...d, pattern: string}>}>> at position 6 could not be parsed: Unknown type name 'array-key' at position 6 in array<string, array<array-key, array{pattern: string, callback: array{0: string, 1:string}|callable|string}|array{bunch: array<int<1, max>, array{callback: mixed, pattern: string}>}>>.
Loading history...
20
     */
21
    protected $paramRoutes = [
22
        'GET' => [],
23
        'POST' => [],
24
        'PUT' => [],
25
        'DELETE' => [],
26
        'OPTION' => [],
27
        'PATCH' => []
28
    ];
29
}
30