Skip to content

Commit

Permalink
Removing backdrop_path from lists as it should not be here.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 23, 2014
1 parent 3362cf9 commit 5201ced
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
5 changes: 1 addition & 4 deletions lib/Tmdb/Factory/ListFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@ public function create(array $data = array())
}

/** Images */
if (array_key_exists('backdrop_path', $data)) {
$lists->setBackdropImage($this->getImageFactory()->createFromPath($data['backdrop_path'], 'backdrop_path'));
}

if (array_key_exists('poster_path', $data)) {
$lists->setPosterImage($this->getImageFactory()->createFromPath($data['poster_path'], 'poster_path'));
}

return $this->hydrate($lists, $data);
}

Expand Down
23 changes: 0 additions & 23 deletions lib/Tmdb/Model/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ class Lists extends AbstractModel {
*/
private $posterImage;

/**
* @var BackdropImage
*/
private $backdropImage;

public static $_properties = array(
'created_by',
'description',
Expand Down Expand Up @@ -268,22 +263,4 @@ public function getPosterPath()
{
return $this->posterPath;
}

/**
* @param \Tmdb\Model\Image\BackdropImage $backdropImage
* @return $this
*/
public function setBackdropImage($backdropImage)
{
$this->backdropImage = $backdropImage;
return $this;
}

/**
* @return \Tmdb\Model\Image\BackdropImage
*/
public function getBackdropImage()
{
return $this->backdropImage;
}
}

0 comments on commit 5201ced

Please sign in to comment.