Skip to content

Commit

Permalink
Revert "Revert "TV Model: add missing "adult" property""
Browse files Browse the repository at this point in the history
This reverts commit e593b01.
  • Loading branch information
ihsudg committed Jul 27, 2023
1 parent 77533d5 commit 003886f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/Tmdb/Model/Tv.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Tv extends AbstractModel
* @var array
*/
public static $properties = [
'adult',
'backdrop_path',
'episode_run_time',
'first_air_date',
Expand Down Expand Up @@ -242,6 +243,10 @@ class Tv extends AbstractModel
* @var GenericCollection
*/
protected $episodeGroups;
/**
* @var bool
*/
private $adult = false;

/**
* Constructor
Expand Down Expand Up @@ -1093,4 +1098,20 @@ public function setEpisodeGroups(GenericCollection $episodeGroups): Tv

return $this;
}

/**
* @return bool
*/
public function getAdult(): bool
{
return $this->adult;
}

/**
* @param bool $adult
*/
public function setAdult(bool $adult): void
{
$this->adult = $adult;
}
}

0 comments on commit 003886f

Please sign in to comment.