Begin updating UI

This commit is contained in:
Dane Everitt 2017-10-02 22:51:13 -05:00
parent 493c5888a3
commit ae671e6b19
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
22 changed files with 182 additions and 102 deletions

View file

@ -9,6 +9,9 @@
namespace Pterodactyl\Contracts\Repository;
use Pterodactyl\Models\Service;
use Illuminate\Support\Collection;
interface ServiceRepositoryInterface extends RepositoryInterface
{
/**
@ -17,7 +20,15 @@ interface ServiceRepositoryInterface extends RepositoryInterface
* @param int $id
* @return \Illuminate\Support\Collection
*/
public function getWithOptions($id = null);
public function getWithOptions(int $id = null): Collection;
/**
* Return a service or all services and the count of options, packs, and servers for that service.
*
* @param int|null $id
* @return \Illuminate\Support\Collection
*/
public function getWithCounts(int $id = null): Collection;
/**
* Return a service along with its associated options and the servers relation on those options.
@ -25,5 +36,5 @@ interface ServiceRepositoryInterface extends RepositoryInterface
* @param int $id
* @return mixed
*/
public function getWithOptionServers($id);
public function getWithOptionServers(int $id): Service;
}