Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TVShow extends Media implements IStreamable |
||
11 | { |
||
12 | use StreamableTrait; |
||
13 | use HasPremieredTrait; |
||
14 | |||
15 | /** |
||
16 | * @var object |
||
17 | */ |
||
18 | public $art; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | public $tvshowid; |
||
24 | |||
25 | public function getDisplayName() |
||
26 | { |
||
27 | $name = $this->label; |
||
28 | if (!empty($this->year)) |
||
29 | $name .= ' ('.$this->year.')'; |
||
30 | |||
31 | return $name; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string the artwork for the show |
||
36 | */ |
||
37 | public function getArtwork() |
||
44 | } |
||
45 | |||
46 | public function getStreamableItems() |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return string the URL to the show's TVDB page |
||
63 | */ |
||
64 | public function getTVDBUrl() |
||
67 | } |
||
68 | |||
70 |