| 1 | <?php |
||
| 28 | class Catalog |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * Tmdb object |
||
| 32 | * @var Tmdb |
||
| 33 | */ |
||
| 34 | private $tmdb = null; |
||
| 35 | /** |
||
| 36 | * Logger |
||
| 37 | * @var LoggerInterface |
||
| 38 | */ |
||
| 39 | private $logger = null; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor |
||
| 43 | * @param vfalies\tmdb\Interfaces\TmdbInterface $tmdb |
||
| 44 | */ |
||
| 45 | 6 | public function __construct(TmdbInterface $tmdb) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get movie genres list |
||
| 53 | * @param array $options |
||
| 54 | * @return \Generator |
||
| 55 | */ |
||
| 56 | 3 | public function getMovieGenres(array $options = array()) |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Get TVShow genres list |
||
| 65 | * @param array $options |
||
| 66 | * @return \Generator |
||
| 67 | */ |
||
| 68 | 2 | public function getTVShowGenres(array $options = array()) |
|
| 74 | |||
| 75 | /** |
||
| 76 | * Get Job list |
||
| 77 | * @param array $options |
||
| 78 | * @return \Generator|\stdClass |
||
| 79 | */ |
||
| 80 | 1 | public function getJobsList(array $options = array()) |
|
| 86 | } |
||
| 87 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.