mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-05 05:45:46 -05:00
22 lines
485 B
PHP
22 lines
485 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Actions\Mounts;
|
|
|
|
use Pterodactyl\Contracts\Mounts\AttachesEggsToMounts;
|
|
use Pterodactyl\Models\Mount;
|
|
|
|
final readonly class AttachEggsToMount implements AttachesEggsToMounts
|
|
{
|
|
/**
|
|
* Attach eggs to a mount, keeping any eggs already attached.
|
|
*
|
|
* @param list<int> $eggIds
|
|
*/
|
|
public function attach(Mount $mount, array $eggIds): void
|
|
{
|
|
$mount->eggs()->syncWithoutDetaching($eggIds);
|
|
}
|
|
}
|