Skip to content

Commit

Permalink
Merge pull request #272 from ihsudg/tv-model-add-missing-property
Browse files Browse the repository at this point in the history
TV Model: add missing "adult" property
  • Loading branch information
wtfzdotnet authored Dec 27, 2024
2 parents 1b08114 + 003886f commit a8f2c6b
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 a8f2c6b

Please sign in to comment.