Files
pterodactyl-panel/app/Actions/Locations/UpdateLocation.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

24 lines
491 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Actions\Locations;
use Pterodactyl\Contracts\Locations\UpdatesLocations;
use Pterodactyl\Models\Location;
final class UpdateLocation implements UpdatesLocations
{
/**
* Update an existing location from validated attributes.
*
* @param LocationUpdateData $data
*/
public function update(Location $location, array $data): Location
{
$location->update($data);
return $location;
}
}