RouteCollectionInterface::put()
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 RouteCollectionInterface
6
{
7
    /**
8
     * Add a route to the map
9
     *
10
     * @param string          $method
11
     * @param string          $path
12
     * @param callable|string $handler
13
     *
14
     * @return Route
15
     */
16
    public function map(string $method, string $path, $handler): Route;
17
18
    /**
19
     * Add a route that responds to GET HTTP method
20
     *
21
     * @param string          $path
22
     * @param callable|string $handler
23
     *
24
     * @return Route
25
     */
26
    public function get($path, $handler);
27
28
    /**
29
     * Add a route that responds to POST HTTP method
30
     *
31
     * @param string          $path
32
     * @param callable|string $handler
33
     *
34
     * @return Route
35
     */
36
    public function post($path, $handler);
37
38
    /**
39
     * Add a route that responds to PUT HTTP method
40
     *
41
     * @param string          $path
42
     * @param callable|string $handler
43
     *
44
     * @return Route
45
     */
46
    public function put($path, $handler);
47
48
    /**
49
     * Add a route that responds to PATCH HTTP method
50
     *
51
     * @param string          $path
52
     * @param callable|string $handler
53
     *
54
     * @return Route
55
     */
56
    public function patch($path, $handler);
57
58
    /**
59
     * Add a route that responds to DELETE HTTP method
60
     *
61
     * @param string          $path
62
     * @param callable|string $handler
63
     *
64
     * @return Route
65
     */
66
    public function delete($path, $handler);
67
68
    /**
69
     * Add a route that responds to HEAD HTTP method
70
     *
71
     * @param string          $path
72
     * @param callable|string $handler
73
     *
74
     * @return Route
75
     */
76
    public function head($path, $handler);
77
78
    /**
79
     * Add a route that responds to OPTIONS HTTP method
80
     *
81
     * @param string          $path
82
     * @param callable|string $handler
83
     *
84
     * @return Route
85
     */
86
    public function options($path, $handler);
87
}
88