1 | <?php |
||
10 | class SettlementsDatabaseQuery extends AbstractDatabaseQuery |
||
11 | { |
||
12 | /** |
||
13 | * SettlementsDatabaseQuery constructor. |
||
14 | */ |
||
15 | 14 | public function __construct() |
|
19 | |||
20 | /** |
||
21 | * Получаем города и поселения |
||
22 | * |
||
23 | * @return $this |
||
24 | */ |
||
25 | 14 | public function getSettlements() |
|
31 | |||
32 | /** |
||
33 | * Address level равен городу или поселению |
||
34 | * |
||
35 | * @param bool $full_settlements |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | 14 | public function addressLevel($full_settlements = false) |
|
49 | } |
||
50 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.