. * * This software is licensed under the terms of the MIT license. * https://opensource.org/licenses/MIT */ namespace Pterodactyl\Contracts\Repository; interface AllocationRepositoryInterface extends RepositoryInterface { /** * Set an array of allocation IDs to be assigned to a specific server. * * @param int|null $server * @param array $ids * @return int */ public function assignAllocationsToServer($server, array $ids); /** * Return all of the allocations for a specific node. * * @param int $node * @return \Illuminate\Database\Eloquent\Collection */ public function getAllocationsForNode($node); }