game-village-politics-backend/app/Actions/ShowVillage.php

16 lines
357 B
PHP
Raw Normal View History

<?php
namespace App\Actions;
use App\Models\User;
use App\Models\Village;
/** The village as it is now; units trained since the last look are settled into it. */
final class ShowVillage extends VillageAction
{
public function __invoke(User $user, int $villageId): Village
{
return $this->mutate($user, $villageId, fn () => null);
}
}