Completed
Push — master ( 88d0d9...a53fa0 )
by Marcin
02:57
created

ZweryfikowanyAdresBezUlic::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 14
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 13
nc 1
nop 1
dl 0
loc 16
ccs 14
cts 14
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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
 *
12
 * @author Marcin Pudełek <[email protected]>
13
 *
14
 */
15
16
/**
17
 * Created by Marcin Pudełek <[email protected]>
18
 * Date: 06.09.2017
19
 */
20
21
namespace mrcnpdlk\Teryt\ResponseModel\Territory;
22
23
/**
24
 * Class ZweryfikowanyAdresBezUlic
25
 *
26
 * @package mrcnpdlk\Teryt\ResponseModel\Territory
27
 */
28
class ZweryfikowanyAdresBezUlic extends AbstractResponseModel
29
{
30
    /**
31
     * Nazwa miejscowości
32
     *
33
     * @var string
34
     */
35
    public $cityName;
36
    /**
37
     * Nazwa rodzaju miejscowości
38
     *
39
     * @var string
40
     */
41
    public $cityTypeName;
42
    /**
43
     * Poprzedni rodzaj miejscowości
44
     *
45
     * @var string
46
     */
47
    public $historicalCityType;
48
    /**
49
     * 7 znakowy identyfikator miejscowości
50
     *
51
     * @var string
52
     */
53
    public $cityId;
54
55
    /**
56
     * ZweryfikowanyAdresBezUlic constructor.
57
     *
58
     * @param \stdClass $oData Obiekt zwrócony z TerytWS1
59
     */
60 1
    public function __construct(\stdClass $oData)
61
    {
62 1
        $this->historicalCityType = $oData->HistorycznyRodzajMiejscowosci;
63 1
        $this->communeName        = $oData->NazwaGmi;
64 1
        $this->cityName           = $oData->NazwaMiejscowosci;
65 1
        $this->districtName       = $oData->NazwaPow;
66 1
        $this->provinceName       = $oData->NazwaWoj;
67 1
        $this->communeTypeName    = $oData->RodzajGmi;
68 1
        $this->cityTypeName       = $oData->RodzajMiejscowosci;
69 1
        $this->communeId          = $oData->SymbolGmi;
70 1
        $this->cityId             = $oData->SymbolMiejscowosci;
71 1
        $this->districtId         = $oData->SymbolPow;
72 1
        $this->communeTypeId      = $oData->SymbolRodzajuGmi;
73 1
        $this->provinceId         = $oData->SymbolWoj;
74
75 1
        parent::__construct();
76 1
    }
77
}
78