RouteInterface::__construct()
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
declare(strict_types=1);
4
5
namespace Nymfonya\Component\Http\Interfaces;
6
7
interface RouteInterface
8
{
9
10
    /**
11
     * instanciate
12
     *
13
     * @param string $routeItem
14
     */
15
    public function __construct(string $routeItem);
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a @return doc comment to communicate to implementors of these methods what they are expected to return.

Loading history...
16
17
    /**
18
     * return regexp pattern
19
     *
20
     * @return string
21
     */
22
    public function getExpr(): string;
23
24
    /**
25
     * return required request method
26
     *
27
     * @return string
28
     */
29
    public function getMethod(): string;
30
31
    /**
32
     * return slugs
33
     *
34
     * @return String[]
35
     */
36
    public function getSlugs(): array;
37
}
38