[L6] Update cursor() calls to work with new lazy collections

This commit is contained in:
Dane Everitt 2019-09-04 21:05:46 -07:00
parent 08bdc9705f
commit 1c5b9dbb87
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 10 additions and 10 deletions

View file

@ -2,9 +2,9 @@
namespace Pterodactyl\Contracts\Repository;
use Generator;
use Pterodactyl\Models\Node;
use Illuminate\Support\Collection;
use Illuminate\Support\LazyCollection;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Pterodactyl\Contracts\Repository\Attributes\SearchableInterface;
@ -69,7 +69,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
* @param array $locations
* @param int $disk
* @param int $memory
* @return \Generator
* @return \Illuminate\Support\LazyCollection
*/
public function getNodesWithResourceUse(array $locations, int $disk, int $memory): Generator;
public function getNodesWithResourceUse(array $locations, int $disk, int $memory): LazyCollection;
}

View file

@ -133,7 +133,7 @@ interface ServerRepositoryInterface extends RepositoryInterface, SearchableInter
* @param int[] $servers
* @param int[] $nodes
* @param bool $returnCount
* @return int|\Generator
* @return int|\Illuminate\Support\LazyCollection
*/
public function getServersForPowerAction(array $servers = [], array $nodes = [], bool $returnCount = false);