ZweryfikowanyAdres   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 49
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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 ZweryfikowanyAdres
23
 */
24
class ZweryfikowanyAdres extends ZweryfikowanyAdresBezUlic
25
{
26
    /**
27
     * Nazwa ulicy w pełnym brzemieniu
28
     *
29
     * @var string
30
     */
31
    public $streetName;
32
    /**
33
     * Część nazwy ulicy począwszy od słowa, które
34
     * decyduje o pozycji ulicy w układzie alfabetycznym, aż do końca nazwy
35
     *
36
     * @var string
37
     */
38
    public $streetName1;
39
    /**
40
     * Pozostała część nazwy ulicy
41
     *
42
     * @var string
43
     */
44
    public $streetName2;
45
    /**
46
     * Identyfikator ulicy
47
     *
48
     * @var string
49
     */
50
    public $streetId;
51
    /**
52
     * Nazwa cechy ulicy
53
     *
54
     * @var static
55
     */
56
    public $streetIdentityName;
57
58
    /**
59
     * ZweryfikowanyAdres constructor.
60
     *
61
     * @param \stdClass $oData Obiekt zwrócony z TerytWS1
62
     *
63
     * @throws \mrcnpdlk\Teryt\Exception
64
     */
65 1
    public function __construct(\stdClass $oData)
66
    {
67 1
        parent::__construct($oData);
68 1
        $this->streetId           = $oData->SymUl;
69 1
        $this->streetName1        = $oData->Nazwa_1;
70 1
        $this->streetName2        = $oData->Nazwa_2;
71 1
        $this->streetName         = $oData->NazwaUlicyWPelnymBrzmieniu;
72 1
        $this->streetIdentityName = $oData->NazwaCechy;
73 1
    }
74
}
75