RouteConditionHandlerInterface::getName()
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 declare(strict_types=1);
2
3
namespace League\Route;
4
5
interface RouteConditionHandlerInterface
6
{
7
    /**
8
     * Get the host condition
9
     *
10
     * @return string|null
11
     */
12
    public function getHost(): ?string;
13
14
    /**
15
     * Set the host condition
16
     *
17
     * @param string $host
18
     *
19
     * @return static
20
     */
21
    public function setHost(string $host): RouteConditionHandlerInterface;
22
23
    /**
24
     * Get the route name
25
     *
26
     * @return string|null
27
     */
28
    public function getName(): ?string;
29
30
    /**
31
     * Set the route name
32
     *
33
     * @param string $name
34
     *
35
     * @return static
36
     */
37
    public function setName(string $name): RouteConditionHandlerInterface;
38
39
    /**
40
     * Get the scheme condition
41
     *
42
     * @return string|null
43
     */
44
    public function getScheme(): ?string;
45
46
    /**
47
     * Set the scheme condition
48
     *
49
     * @param string $scheme
50
     *
51
     * @return static
52
     */
53
    public function setScheme(string $scheme): RouteConditionHandlerInterface;
54
55
    /**
56
     * Get the port condition
57
     *
58
     * @return int|null
59
     */
60
    public function getPort(): ?int;
61
62
    /**
63
     * Set the port condition
64
     *
65
     * @param int $port
66
     *
67
     * @return static
68
     */
69
    public function setPort(int $port): RouteConditionHandlerInterface;
70
}
71