1 | <?php |
||
9 | abstract class AbstractBattleNet |
||
10 | { |
||
11 | use BattleNetTrait; |
||
12 | |||
13 | protected $_apiKey; |
||
14 | protected $_responseLocale; |
||
15 | |||
16 | /** |
||
17 | * @param string $apiKey |
||
18 | * @param string $serverLocation |
||
19 | * @param string $responseLocale |
||
20 | */ |
||
21 | public function __construct( |
||
29 | |||
30 | /** |
||
31 | * @param string $path |
||
32 | * @param array $data |
||
33 | * |
||
34 | * @return array |
||
35 | * @throws BattleNetException |
||
36 | */ |
||
37 | protected function _get($path, $data = []) |
||
62 | } |
||
63 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: