1 | <?php |
||
22 | class Nts |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | public $region_id; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | public $podregion_id; |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | public $teryt_wojewodztwo_id; |
||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | public $teryt_powiat_id; |
||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | public $teryt_gmina_id; |
||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | public $teryt_gmina_typ_id; |
||
48 | /** |
||
49 | * @var int |
||
50 | */ |
||
51 | public $teryt_terc_id; |
||
52 | |||
53 | /** |
||
54 | * Nts constructor. |
||
55 | * |
||
56 | * @param string|null $nts |
||
57 | * |
||
58 | * @throws \mrcnpdlk\MojePanstwo\Exception |
||
59 | */ |
||
60 | 5 | public function __construct(string $nts = null) |
|
93 | } |
||
94 |
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: