mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
19 lines
439 B
PHP
19 lines
439 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Actions\Allocations;
|
|
|
|
use Pterodactyl\Contracts\Allocations\UpdatesAllocationNotes;
|
|
use Pterodactyl\Models\Allocation;
|
|
|
|
final class UpdateAllocationNotes implements UpdatesAllocationNotes
|
|
{
|
|
public function update(Allocation $allocation, ?string $notes): Allocation
|
|
{
|
|
$allocation->forceFill(['notes' => $notes])->save();
|
|
|
|
return $allocation->refresh();
|
|
}
|
|
}
|