Adding missing docblocks

This commit is contained in:
ilumos 2017-08-28 11:05:19 +01:00
parent de26d0eef2
commit 63896e2325
2 changed files with 29 additions and 0 deletions

View file

@ -51,6 +51,12 @@ class ShowQueue extends Command
}
}
/**
* Display apps in the queue for a given status
*
* @param $status string
* @return void
*/
private function displayAppsWithStatus($status)
{
switch ($status) {

View file

@ -112,6 +112,11 @@ class StartDownloading extends Command
}
}
/**
* Return the next app in the queue
*
* @return mixed
*/
private function nextApp()
{
return Capsule::table('steam_queue')
@ -119,6 +124,14 @@ class StartDownloading extends Command
->first();
}
/**
* Update an item's status in the queue
*
* @param $id
* @param $status
* @param null $message
* @return int
*/
private function updateQueueItemStatus($id, $status, $message = null)
{
return Capsule::table('steam_queue')
@ -126,6 +139,11 @@ class StartDownloading extends Command
->update(['status' => $status, 'message' => $message]);
}
/**
* Get total number of items in queue
*
* @return int
*/
private function queuedItems()
{
return Capsule::table('steam_queue')
@ -133,6 +151,11 @@ class StartDownloading extends Command
->count();
}
/**
* Get collection of accounts specified to download apps
*
* @return \Illuminate\Support\Collection
*/
private function accountsInQueue()
{
return Capsule::table('steam_queue')