| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class RequestMethodMapping |
||
| 11 | { |
||
| 12 | const REQUEST_METHOD_GET = 'get'; |
||
| 13 | const REQUEST_METHOD_POST = 'post'; |
||
| 14 | |||
| 15 | const REQUEST_QUERY_GET = 'query'; |
||
| 16 | const REQUEST_QUERY_POST = 'request'; |
||
| 17 | |||
| 18 | static public $methodsMapping = [ |
||
| 19 | self::REQUEST_METHOD_GET => self::REQUEST_QUERY_GET, |
||
| 20 | self::REQUEST_METHOD_POST => self::REQUEST_QUERY_POST, |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $method |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | public static function isValidMethod($method) |
||
| 31 | } |
||
| 32 | } |