misc_pterodactyl-panel/app/Contracts/Repository/AllocationRepositoryInterface.php

20 lines
546 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Contracts\Repository;
interface AllocationRepositoryInterface extends RepositoryInterface
{
2018-01-21 22:02:03 +00:00
/**
* Return all of the allocations that exist for a node that are not currently
* allocated.
*/
public function getUnassignedAllocationIds(int $node): array;
/**
* Return a single allocation from those meeting the requirements.
*
* @return \Pterodactyl\Models\Allocation|null
2018-01-28 23:14:34 +00:00
*/
public function getRandomAllocation(array $nodes, array $ports, bool $dedicated = false);
}