Skip to content

Commit a8f2c6b

Browse files
authored
Merge pull request #272 from ihsudg/tv-model-add-missing-property
TV Model: add missing "adult" property
2 parents 1b08114 + 003886f commit a8f2c6b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lib/Tmdb/Model/Tv.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Tv extends AbstractModel
4040
* @var array
4141
*/
4242
public static $properties = [
43+
'adult',
4344
'backdrop_path',
4445
'episode_run_time',
4546
'first_air_date',
@@ -242,6 +243,10 @@ class Tv extends AbstractModel
242243
* @var GenericCollection
243244
*/
244245
protected $episodeGroups;
246+
/**
247+
* @var bool
248+
*/
249+
private $adult = false;
245250

246251
/**
247252
* Constructor
@@ -1093,4 +1098,20 @@ public function setEpisodeGroups(GenericCollection $episodeGroups): Tv
10931098

10941099
return $this;
10951100
}
1101+
1102+
/**
1103+
* @return bool
1104+
*/
1105+
public function getAdult(): bool
1106+
{
1107+
return $this->adult;
1108+
}
1109+
1110+
/**
1111+
* @param bool $adult
1112+
*/
1113+
public function setAdult(bool $adult): void
1114+
{
1115+
$this->adult = $adult;
1116+
}
10961117
}

0 commit comments

Comments
 (0)