diff --git a/src/Api/Trakt/ValueObject/TraktMovie.php b/src/Api/Trakt/ValueObject/TraktMovie.php index b91dd71f..c9c33c8b 100644 --- a/src/Api/Trakt/ValueObject/TraktMovie.php +++ b/src/Api/Trakt/ValueObject/TraktMovie.php @@ -2,15 +2,10 @@ namespace Movary\Api\Trakt\ValueObject; -use Movary\ValueObject\Year; - class TraktMovie { private function __construct( - private readonly string $title, - private readonly Year $year, private readonly TraktId $traktId, - private readonly string $imdbId, private readonly int $tmdbId, ) { } @@ -18,24 +13,11 @@ private function __construct( public static function createFromArray(array $data) : self { return new self( - $data['title'], - Year::createFromInt($data['year']), TraktId::createFromInt($data['ids']['trakt']), - $data['ids']['imdb'], $data['ids']['tmdb'], ); } - public function getImdbId() : string - { - return $this->imdbId; - } - - public function getTitle() : string - { - return $this->title; - } - public function getTmdbId() : int { return $this->tmdbId; @@ -45,9 +27,4 @@ public function getTraktId() : TraktId { return $this->traktId; } - - public function getYear() : Year - { - return $this->year; - } }