Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
73 | 1 | public function __construct(\stdClass $oData = null) |
|
74 | { |
||
75 | /** |
||
76 | * Hack for values with different namespace |
||
77 | */ |
||
78 | 1 | $this->{'wojewodztwa.id'} = null; |
|
79 | 1 | $this->{'wojewodztwa.nazwa'} = null; |
|
80 | |||
81 | 1 | parent::__construct($oData); |
|
82 | 1 | if ($oData) { |
|
83 | 1 | $this->id = $this->convertToId($this->id); |
|
84 | 1 | $this->typ_id = $this->convertToId($this->typ_id); |
|
85 | 1 | $this->wojewodztwo_id = $this->convertToId($this->wojewodztwo_id); |
|
86 | 1 | $this->senat_okreg_id = $this->convertToId($this->senat_okreg_id); |
|
87 | 1 | $this->sejm_okreg_id = $this->convertToId($this->sejm_okreg_id); |
|
88 | 1 | $this->wojewodztwo_nazwa = $this->{'wojewodztwa.nazwa'}; |
|
89 | 1 | $this->nts_teryt = new Nts($this->nts); |
|
90 | } |
||
91 | 1 | } |
|
92 | } |
||
93 |