2019-01-29 20:02:36 +01:00
|
|
|
<?php
|
|
|
|
|
2019-01-29 21:01:01 +01:00
|
|
|
namespace App\Domain\MapManagement;
|
2019-01-29 20:02:36 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|