1 | <?php |
||
13 | class Title extends \mrcnpdlk\Xmdb\Model\Title |
||
14 | { |
||
15 | /** |
||
16 | * @var |
||
17 | */ |
||
18 | public $rated; |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | public $awards; |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | public $poster; |
||
27 | /** |
||
28 | * @var \mrcnpdlk\Xmdb\Model\Omdb\Rating[] |
||
29 | */ |
||
30 | public $ratings = []; |
||
31 | /** |
||
32 | * @var int|null |
||
33 | */ |
||
34 | public $metascore; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | public $type; |
||
39 | /** |
||
40 | * @var integer |
||
41 | */ |
||
42 | public $totalSeasons; |
||
43 | /** |
||
44 | * @var string | null |
||
45 | */ |
||
46 | public $dvd; |
||
47 | /** |
||
48 | * @var string | null |
||
49 | */ |
||
50 | public $boxOffice; |
||
51 | /** |
||
52 | * @var string | null |
||
53 | */ |
||
54 | public $production; |
||
55 | /** |
||
56 | * @var string | null |
||
57 | */ |
||
58 | public $website; |
||
59 | |||
60 | /** |
||
61 | * @param \stdClass $oData |
||
62 | * |
||
63 | * @return static |
||
64 | */ |
||
65 | public static function create(\stdClass $oData) |
||
105 | } |
||
106 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.