Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 26, 2014
1 parent 4164986 commit 80a168c
Show file tree
Hide file tree
Showing 25 changed files with 42 additions and 196 deletions.
2 changes: 1 addition & 1 deletion lib/Tmdb/Common/ObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ObjectHydrator {
*
* @param AbstractModel $object
* @param array $data
* @return $this
* @return AbstractModel
* @throws RuntimeException
*/
public static function hydrate(AbstractModel $object, $data = array())
Expand Down
1 change: 1 addition & 0 deletions lib/Tmdb/Factory/People/CastFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static function create(array $data = array(), $person = null)

/**
* {@inheritdoc}
* @param \Tmdb\Model\Tv\Person\CastMember $person
*/
public static function createCollection(array $data = array(), $person = null)
{
Expand Down
1 change: 1 addition & 0 deletions lib/Tmdb/Factory/People/CrewFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static function create(array $data = array(), $person = null)

/**
* {@inheritdoc}
* @param \Tmdb\Model\Tv\Person\CrewMember $person
*/
public static function createCollection(array $data = array(), $person = null)
{
Expand Down
2 changes: 0 additions & 2 deletions lib/Tmdb/Model/Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*/
namespace Tmdb\Model;

use Tmdb\Client;

class Change extends AbstractModel {
/**
* @var integer
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function getName()
}

/**
* @param \Tmdb\Model\Common\Collection $parts
* @param GenericCollection $parts
* @return $this
*/
public function setParts($parts)
Expand Down
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Collection/Images.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
*/
namespace Tmdb\Model\Collection;

use Tmdb\Factory\ImageFactory;
use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Filter\ImageFilter;
use Tmdb\Model\Image;

Expand Down Expand Up @@ -175,7 +173,7 @@ function($key, $value) use ($height) {
/**
* Return a single image that is rated highest
*
* @return null|Image
* @return ImageFilter|null
*/
public function filterBestVotedImage()
{
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Model/Collection/Keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace Tmdb\Model\Common\Collection;

use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Keyword;

class Keywords extends GenericCollection {
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Model/Collection/People.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace Tmdb\Model\Collection;

use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Collection\People\PersonInterface;
use Tmdb\Model\Person;

Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/People/Cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Cast extends People {
/**
* Returns all people
*
* @return People
* @return Person[]
*/
public function getCast()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/People/Crew.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Crew extends People {
/**
* Returns all people
*
* @return People
* @return Person[]
*/
public function getCrew()
{
Expand Down
152 changes: 0 additions & 152 deletions lib/Tmdb/Model/Common/DataCollector.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
namespace Tmdb\Model\Common\QueryParameter;

interface QueryParameterInterface {
/**
* @return string
*/
function getKey();

/**
* @return string
*/
function getValue();
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Genre.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand Down
20 changes: 8 additions & 12 deletions lib/Tmdb/Model/Movie.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,16 @@
namespace Tmdb\Model;

use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Collection\Credits;
use Tmdb\Model\Collection\Genres;
use Tmdb\Model\Collection\Images;
use Tmdb\Model\Collection\People;

use Tmdb\Model\Common\Country;
use Tmdb\Model\Common\SpokenLanguage;
use Tmdb\Model\Common\Translation;
use Tmdb\Model\Movie\AlternativeTitle;
use Tmdb\Model\Movie\Keyword;
use Tmdb\Model\Movie\Release;
use Tmdb\Model\Person\CastMember;
use Tmdb\Model\Person\CrewMember;

class Movie extends AbstractModel {
/**
Expand Down Expand Up @@ -308,7 +304,7 @@ public function setBelongsToCollection($belongsToCollection)
}

/**
* @return null
* @return Collection|null
*/
public function getBelongsToCollection()
{
Expand Down Expand Up @@ -380,7 +376,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand Down Expand Up @@ -470,7 +466,7 @@ public function setPopularity($popularity)
}

/**
* @return mixed
* @return double
*/
public function getPopularity()
{
Expand Down Expand Up @@ -542,7 +538,7 @@ public function setReleaseDate(\DateTime $releaseDate)
}

/**
* @return mixed
* @return \DateTime
*/
public function getReleaseDate()
{
Expand All @@ -560,7 +556,7 @@ public function setRevenue($revenue)
}

/**
* @return mixed
* @return integer
*/
public function getRevenue()
{
Expand All @@ -578,7 +574,7 @@ public function setRuntime($runtime)
}

/**
* @return mixed
* @return integer
*/
public function getRuntime()
{
Expand Down Expand Up @@ -668,7 +664,7 @@ public function setVoteAverage($voteAverage)
}

/**
* @return mixed
* @return double
*/
public function getVoteAverage()
{
Expand All @@ -686,7 +682,7 @@ public function setVoteCount($voteCount)
}

/**
* @return mixed
* @return integer
*/
public function getVoteCount()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Movie/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function setReleaseDate($releaseDate)
}

/**
* @return mixed
* @return \DateTime
*/
public function getReleaseDate()
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
namespace Tmdb\Model;

use Tmdb\Model\Collection\Credits;

use Tmdb\Model\Common\GenericCollection;
use Tmdb\Model\Collection\Images;

use Tmdb\Model\Collection\People\PersonInterface;
use Tmdb\Model\Image\ProfileImage;

Expand Down Expand Up @@ -228,7 +226,7 @@ public function getId()
}

/**
* @param mixed $images
* @param Images $images
* @return $this
*/
public function setImages($images)
Expand Down
Loading

0 comments on commit 80a168c

Please sign in to comment.