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

RodzajMiejscowosci   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 31
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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
 *
12
 * @author Marcin Pudełek <[email protected]>
13
 *
14
 */
15
16
/**
17
 * Created by Marcin.
18
 * Date: 06.09.2017
19
 * Time: 21:56
20
 */
21
22
namespace mrcnpdlk\Teryt\ResponseModel\Dictionary;
23
24
/**
25
 * Class RodzajMiejscowosci
26
 *
27
 * @package mrcnpdlk\Teryt\ResponseModel\Dictionary
28
 */
29
class RodzajMiejscowosci
30
{
31
    /**
32
     * Identyfikator typu miejscowości
33
     *
34
     * @var string
35
     */
36
    public $id;
37
    /**
38
     * Nazwa typu
39
     *
40
     * @var string
41
     */
42
    public $name;
43
    /**
44
     * Opis
45
     *
46
     * @var string
47
     */
48
    public $desc;
49
50
    /**
51
     * RodzajMiejscowosci constructor.
52
     *
53
     * @param \stdClass $oData Obiekt zwrócony z TerytWS1
54
     */
55 1
    public function __construct(\stdClass $oData)
56
    {
57 1
        $this->id   = $oData->Symbol;
58 1
        $this->name = $oData->Nazwa;
59 1
        $this->desc = $oData->Opis;
60 1
    }
61
}
62