mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Solved function tests
This commit is contained in:
@@ -33,8 +33,9 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio
|
||||
private function isValidActionData(string $actionType, $data): bool
|
||||
{
|
||||
switch ($actionType) {
|
||||
case ActionType::READ:
|
||||
case ActionType::CREATE:
|
||||
return $data instanceof EntityInterface | null === $data;
|
||||
case ActionType::READ:
|
||||
case ActionType::UPDATE:
|
||||
return $data instanceof EntityInterface;
|
||||
case ActionType::DELETE:
|
||||
|
Reference in New Issue
Block a user