Companies::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 1
crap 6
1
<?php
2
/**
3
 * MOJEPANSTWO-API
4
 *
5
 * Copyright © 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
declare (strict_types=1);
16
17
namespace mrcnpdlk\MojePanstwo\Model\KrsEntity;
18
19
use mrcnpdlk\MojePanstwo\Model\ModelAbstract;
20
21
class Companies extends ModelAbstract
22
{
23
    /**
24
     * @var int
25
     */
26
    public $id;
27
    /**
28
     * @var string
29
     */
30
    public $nazwa;
31
    /**
32
     * @var string
33
     */
34
    public $udzialy_str;
35
    /**
36
     * @var string
37
     */
38
    public $udzialy_status;
39
    /**
40
     * @var integer
41
     */
42
    public $udzialy_liczba;
43
    /**
44
     * @var float
45
     */
46
    public $udzialy_wartosc_jedn;
47
    /**
48
     * @var float
49
     */
50
    public $udzialy_wartosc;
51
52
53
    /**
54
     * Companies constructor.
55
     *
56
     * @param \stdClass|null $oData
57
     *
58
     * @throws \mrcnpdlk\MojePanstwo\Exception
59
     */
60
    public function __construct(\stdClass $oData = null)
61
    {
62
        parent::__construct($oData);
63
        if ($oData) {
64
            $this->udzialy_wartosc_jedn = (float)$this->udzialy_wartosc_jedn;
65
            $this->udzialy_wartosc      = (float)$this->udzialy_wartosc;
66
        }
67
    }
68
}
69