ZweryfikowanyAdresBezUlic   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 50
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
1
<?php
2
/**
3
 * TERYT-API
4
 *
5
 * Copyright (c) 2017 pudelek.org.pl
6
 *
7
 * @license MIT License (MIT)
8
 *
9
 * For the full copyright and license information, please view source file
10
 * that is bundled with this package in the file LICENSE
11
 * @author Marcin Pudełek <[email protected]>
12
 */
13
14
/**
15
 * Created by Marcin Pudełek <[email protected]>
16
 * Date: 06.09.2017
17
 */
18
19
namespace mrcnpdlk\Teryt\ResponseModel\Territory;
20
21
/**
22
 * Class ZweryfikowanyAdresBezUlic
23
 */
24
class ZweryfikowanyAdresBezUlic extends AbstractResponseModel
25
{
26
    /**
27
     * Nazwa miejscowości
28
     *
29
     * @var string
30
     */
31
    public $cityName;
32
    /**
33
     * Nazwa rodzaju miejscowości
34
     *
35
     * @var string
36
     */
37
    public $cityTypeName;
38
    /**
39
     * Poprzedni rodzaj miejscowości
40
     *
41
     * @var string
42
     */
43
    public $historicalCityType;
44
    /**
45
     * 7 znakowy identyfikator miejscowości
46
     *
47
     * @var string
48
     */
49
    public $cityId;
50
51
    /**
52
     * ZweryfikowanyAdresBezUlic constructor.
53
     *
54
     * @param \stdClass $oData Obiekt zwrócony z TerytWS1
55
     *
56
     * @throws \mrcnpdlk\Teryt\Exception
57
     */
58 1
    public function __construct(\stdClass $oData)
59
    {
60 1
        $this->historicalCityType = $oData->HistorycznyRodzajMiejscowosci;
61 1
        $this->communeName        = $oData->NazwaGmi;
62 1
        $this->cityName           = $oData->NazwaMiejscowosci;
63 1
        $this->districtName       = $oData->NazwaPow;
64 1
        $this->provinceName       = $oData->NazwaWoj;
65 1
        $this->communeTypeName    = $oData->RodzajGmi;
66 1
        $this->cityTypeName       = $oData->RodzajMiejscowosci;
67 1
        $this->communeId          = $oData->SymbolGmi;
68 1
        $this->cityId             = $oData->SymbolMiejscowosci;
69 1
        $this->districtId         = $oData->SymbolPow;
70 1
        $this->communeTypeId      = $oData->SymbolRodzajuGmi;
71 1
        $this->provinceId         = $oData->SymbolWoj;
72
73 1
        parent::__construct();
74 1
    }
75
}
76