1 | <?php |
||
14 | class Movie extends File implements IStreamable |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | public $movieid; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | public $tagline; |
||
26 | |||
27 | /** |
||
28 | * @var array the directors for this movie |
||
29 | */ |
||
30 | public $director; |
||
31 | |||
32 | /** |
||
33 | * @var string the date the movie was added to the library |
||
34 | */ |
||
35 | public $dateadded; |
||
36 | |||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | private $_votes; |
||
41 | |||
42 | public function getDisplayName() |
||
46 | |||
47 | /** |
||
48 | * @return int the vote count |
||
49 | */ |
||
50 | public function getVotes() |
||
54 | |||
55 | /** |
||
56 | * Setter for votes. The value returned from the API is a string which |
||
57 | * we'll convert to an integer. |
||
58 | * @param string $votes |
||
59 | */ |
||
60 | public function setVotes($votes) |
||
64 | |||
65 | /** |
||
66 | * @return string the first credited director, or an empty string |
||
67 | */ |
||
68 | public function getDirector() |
||
75 | |||
76 | /** |
||
77 | * @return string the URL to the movie's IMDb page |
||
78 | */ |
||
79 | public function getIMDbUrl() |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getDateAdded() |
||
91 | } |
||
92 |