RegionsDatabaseQuery::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace GeoFixer\models\queries;
4
5
/**
6
 * Class RegionsDatabaseQuery
7
 *
8
 * @package GeoFixer\models\queries
9
 */
10
class RegionsDatabaseQuery extends AbstractDatabaseQuery
11
{
12
    /**
13
     * RegionsDatabaseQuery constructor.
14
     */
15 9
    public function __construct()
16
    {
17 9
        parent::__construct();
18 9
    }
19
20
    /**
21
     * Получаем регионы
22
     *
23
     * @return $this
24
     */
25 9
    public function getRegions()
26
    {
27 9
        $this->db = $this->db->select('*')->from('fias_region');
28
29 9
        return $this;
30
    }
31
}
32