Total Complexity | 6 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved |
||
4 | class Result |
||
5 | { |
||
6 | /** |
||
7 | * @var int |
||
8 | */ |
||
9 | protected $inserted; |
||
10 | |||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | protected $updated; |
||
15 | |||
16 | /** |
||
17 | * Result constructor. |
||
18 | * @param int $inserted |
||
19 | * @param int $updated |
||
20 | */ |
||
21 | public function __construct(int $inserted, int $updated) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return int |
||
29 | */ |
||
30 | public function getInserted(): int |
||
31 | { |
||
32 | return $this->inserted; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return int |
||
37 | */ |
||
38 | public function getUpdated(): int |
||
39 | { |
||
40 | return $this->updated; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param $data |
||
45 | * @return Result |
||
46 | */ |
||
47 | public static function buildFromArray($data) |
||
53 | } |
||
54 | } |
||
55 |