Passed
Push — main ( cb0dfb...09414e )
by Miaad
10:52
created

cryptoCallback   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
class cryptoCallback extends types {
0 ignored issues
show
Bug introduced by
The type BPT\types\types was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
    /** Keep all properties which has sub properties */
9
    private const subs = [];
10
11
    public string $status;
12
13
    /** @var int Order id in your database */
14
    public int $order_id;
15
16
    /** @var int The related user */
17
    public int $user_id;
18
19
    /** @var string Description of order */
20
    public string $description;
21
22
    /** @var int|float Real amount or known as requested amount */
23
    public int|float $real_amount;
24
25
    /** @var string Fiat currency(aka usd, euro, ...) */
26
    public string $currency;
27
28
    /** @var int|float Paid amount in this payment */
29
    public int|float $paid_amount;
30
31
    /** @var int|float Total paid amount for the order id */
32
    public int|float $total_paid;
33
34
    public function __construct(stdClass|null $object = null) {
35
        if ($object != null) {
36
            parent::__construct($object, self::subs);
37
        }
38
    }
39
}
40