mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-03-14 10:55:17 +01:00
26 lines
579 B
PHP
26 lines
579 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Domain\ResponseManagement;
|
||
|
|
||
|
/**
|
||
|
* This class offers a map for ActionTypes to HttpMethods.
|
||
|
*
|
||
|
* @author kevinfrantz
|
||
|
*/
|
||
|
interface ActionHttpMethodMapInterface
|
||
|
{
|
||
|
/**
|
||
|
* @param string $httpMethod
|
||
|
*
|
||
|
* @return array|string[] The Http-Methods which belong to an action
|
||
|
*/
|
||
|
public static function getActions(string $httpMethod): array;
|
||
|
|
||
|
/**
|
||
|
* @param string $action
|
||
|
*
|
||
|
* @return array|string[] The Http-Methods which are possible for an action
|
||
|
*/
|
||
|
public static function getHttpMethods(string $action): array;
|
||
|
}
|