1 | <?php |
||
5 | class SiftScienceService |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Get auth parameters from config, fail if any are missing. |
||
10 | * Instantiate API client and set auth token. |
||
11 | * |
||
12 | * @throws Exception |
||
13 | */ |
||
14 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * Pass any method calls onto $this->siftclient |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function __call($method, $args) |
||
46 | } |
||
47 |
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: