mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 20:05:48 -05:00
18 lines
377 B
PHP
18 lines
377 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Actions\Mounts;
|
|
|
|
use Pterodactyl\Contracts\Mounts\DetachesEggsFromMounts;
|
|
use Pterodactyl\Models\Egg;
|
|
use Pterodactyl\Models\Mount;
|
|
|
|
final readonly class DetachEggFromMount implements DetachesEggsFromMounts
|
|
{
|
|
public function detach(Mount $mount, Egg $egg): void
|
|
{
|
|
$mount->eggs()->detach($egg->id);
|
|
}
|
|
}
|