Skip to content

Commit

Permalink
Removing all expectations of how non implemented methods should be im…
Browse files Browse the repository at this point in the history
…plemented by collaborators.
  • Loading branch information
wtfzdotnet committed Jan 26, 2014
1 parent 5f3dc67 commit 59a0591
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 69 deletions.
34 changes: 7 additions & 27 deletions lib/Tmdb/Api/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,96 +20,76 @@ class Account
/**
* Get the basic information for an account. You will need to have a valid session id.
*
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getAccount(array $options = array(), array $headers = array())
public function getAccount()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the lists that you have created and marked as a favorite.
*
* @param $account_id
* @param $options array
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getLists($account_id, array $options = array(), array $headers = array())
public function getLists()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the list of favorite movies for an account.
*
* @param $account_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getFavoriteMovies($account_id, array $options = array(), array $headers = array())
public function getFavoriteMovies()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Add or remove a movie to an accounts favorite list.
*
* @param $account_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function favorite($account_id, array $options = array(), array $headers = array())
public function favorite()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the list of rated movies (and associated rating) for an account.
*
* @param $account_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getRatedMovies($account_id, array $options = array(), array $headers = array())
public function getRatedMovies()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the list of movies on an accounts watchlist.
*
* @param $account_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getMovieWatchlist($account_id, array $options = array(), array $headers = array())
public function getMovieWatchlist()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Add or remove a movie to an accounts watch list.
*
* @param $account_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function watchlist($account_id, array $options = array(), array $headers = array())
public function watchlist()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
Expand Down
13 changes: 3 additions & 10 deletions lib/Tmdb/Api/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ class Authentication
* You can generate any number of request tokens but they will expire after 60 minutes.
* As soon as a valid session id has been created the token will be destroyed.
*
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getNewToken(array $options = array(), array $headers = array())
public function getNewToken()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
Expand All @@ -38,13 +36,10 @@ public function getNewToken(array $options = array(), array $headers = array())
* This method is used to generate a session id for user based authentication.
* A session id is required in order to use any of the write methods.
*
* @param $request_token
* @param $options array
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getNewSession($request_token, array $options = array(), array $headers = array())
public function getNewSession()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
Expand All @@ -60,12 +55,10 @@ public function getNewSession($request_token, array $options = array(), array $h
*
* If a guest session is not used for the first time within 24 hours, it will be automatically discarded.
*
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getNewGuestSession(array $options = array(), array $headers = array())
public function getNewGuestSession()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
Expand Down
29 changes: 5 additions & 24 deletions lib/Tmdb/Api/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,73 +33,54 @@ public function getList($list_id, array $options = array(), array $headers = arr
/**
* This method lets users create a new list. A valid session id is required.
*
* @param $name
* @param $description
* @param $options array
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function createList($name, $description, array $options = array(), array $headers = array())
public function createList()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Check to see if a movie ID is already added to a list.
*
* @param $list_id
* @param $movie_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function getItemStatus($list_id, $movie_id, array $options = array(), array $headers = array())
public function getItemStatus()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the cast information for a specific list id.
*
* @param $list_id
* @param $media_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function addMediaToList($list_id, $media_id, array $options = array(), array $headers = array())
public function addMediaToList()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the images (posters and backdrops) for a specific list id.
*
* @param $list_id
* @param $media_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function removeMediaFromList($list_id, $media_id, array $options = array(), array $headers = array())
public function removeMediaFromList()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}

/**
* Get the plot keywords for a specific list id.
*
* @param $list_id
* @param array $options
* @param array $headers
* @throws NotImplementedException
* @return mixed
*/
public function deleteList($list_id, array $options = array(), array $headers = array())
public function deleteList()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
Expand Down
10 changes: 2 additions & 8 deletions lib/Tmdb/Api/Movies.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,25 +236,19 @@ public function getTopRated(array $options = array(), array $headers = array())
/**
* This method lets users get the status of whether or not the movie has been rated or added to their favourite or watch lists. A valid session id is required.
*
* @param $movie_id
* @param array $options
* @param array $headers
* @throws \Tmdb\Exception\NotImplementedException
*/
public function getAccountStates($movie_id, array $options = array(), array $headers = array())
public function getAccountStates()
{
throw new NotImplementedException('TMDB account sessions have not been implemented yet!');
}

/**
* TThis method lets users rate a movie. A valid session id or guest session id is required.
*
* @param $movie_id
* @param array $options
* @param array $headers
* @throws \Tmdb\Exception\NotImplementedException
*/
public function rateMovie($movie_id, array $options = array(), array $headers = array())
public function rateMovie()
{
throw new NotImplementedException('TMDB account sessions have not been implemented yet!');
}
Expand Down

0 comments on commit 59a0591

Please sign in to comment.