Implemented Tests for ActionHttpMethodMap

This commit is contained in:
Kevin Frantz
2019-01-29 21:01:01 +01:00
parent 8e2d79d236
commit 52d38a0c84
3 changed files with 60 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Domain\MapManagement;
/**
* 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;
}