1 | <?php |
||
13 | abstract class RestResource |
||
14 | { |
||
15 | /** |
||
16 | * @param Uri $uri |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function isIdentifiedBy(Uri $uri): bool |
||
23 | |||
24 | /** |
||
25 | * @param RequestMethod $method |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function supports(RequestMethod $method): bool |
||
32 | |||
33 | /** |
||
34 | * @return RequestMethod[] |
||
35 | */ |
||
36 | public function getSupportedMethods(): array |
||
41 | |||
42 | /** |
||
43 | * @return Pattern |
||
44 | */ |
||
45 | abstract protected function getUriPattern(): Pattern; |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | private function getMethodMap(): array |
||
60 | } |
||
61 |