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

21 lines
433 B
PHP

<?php
namespace App\Actions;
use App\Models\User;
use App\Models\Village;
/** The village's market as it is now: due arrivals and route runs are caught up first. */
final class ShowMarket extends VillageAction
{
public function __invoke(User $user, int $villageId): Village
{
return $this->mutate($user, $villageId, fn () => null);
}
protected function readOnly(): bool
{
return true;
}
}