Share::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
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 Share extends ModelAbstract
22
{
23
    /**
24
     * Seria
25
     *
26
     * @var string
27
     */
28
    public $seria;
29
    /**
30
     * Ilość akcji
31
     *
32
     * @var integer
33
     */
34
    public $liczba;
35
    /**
36
     * @var string
37
     */
38
    public $rodzaj_uprzywilejowania;
39
40
41
    /**
42
     * Share constructor.
43
     *
44
     * @param \stdClass|null $oData
45
     *
46
     * @throws \mrcnpdlk\MojePanstwo\Exception
47
     */
48
    public function __construct(\stdClass $oData = null)
49
    {
50
        parent::__construct($oData);
51
        if ($oData) {
52
            $this->liczba = (int)$this->liczba;
53
        }
54
    }
55
}
56