1 | <?php |
||
9 | abstract class Results implements ResultsInterface |
||
10 | { |
||
11 | |||
12 | protected $property_blacklist = ['property_blacklist', 'conf', 'data', 'logger']; |
||
13 | protected $logger = null; |
||
14 | protected $conf = null; |
||
15 | |||
16 | /** |
||
17 | * Constructor |
||
18 | * @param \vfalies\tmdb\Tmdb $tmdb |
||
19 | * @param \stdClass $result |
||
20 | * @throws NotFoundException |
||
21 | */ |
||
22 | 44 | public function __construct(Tmdb $tmdb, \stdClass $result) |
|
40 | |||
41 | } |
||
42 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: