Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PaymentResponse{ |
||
10 | /** |
||
11 | * @var array of string |
||
12 | */ |
||
13 | public $to; |
||
14 | /** |
||
15 | * @var array of string |
||
16 | */ |
||
17 | public $from; |
||
18 | /** |
||
19 | * @var array of integer in satoshi |
||
20 | */ |
||
21 | public $amount; |
||
22 | /** |
||
23 | * @var integer in satoshi |
||
24 | */ |
||
25 | public $fee; |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public $txid; |
||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | public $success; |
||
34 | |||
35 | /** |
||
36 | * PaymentResponse constructor. |
||
37 | * @param $params array |
||
38 | */ |
||
39 | |||
40 | public function __construct($params){ |
||
41 | if(is_null($params)) |
||
42 | return; |
||
43 | $this->to = data_get($params,'to'); |
||
44 | $this->from = data_get($params,'from'); |
||
45 | $this->amount = data_get($params,'amount'); |
||
46 | $this->fee = data_get($params,'fee'); |
||
47 | $this->txid = data_get($params,'txid'); |
||
48 | $this->success = data_get($params,'success'); |
||
49 | } |
||
50 | |||
51 | public function __toString(){ |
||
58 | } |
||
59 | |||
61 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths