Passed
Push — main ( 4af278...3f64e8 )
by Miaad
01:24
created

labeledPrice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * This object represents a portion of the price for goods or services.
9
 */
10
class labeledPrice 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...
11
	/** Keep all of properties which has sub properties */
12
	private const subs = [];
13
14
	/** Portion label */
15
	public string $label;
16
17
	/**
18
	 * Price of the product in the smallest units of the currency (integer, not float/double). For example, for a
19
	 * price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits
20
	 * past the decimal point for each currency (2 for the majority of currencies).
21
	 */
22
	public int $amount;
23
24
25
	public function __construct(stdClass $update) {
26
		parent::__construct($update, self::subs);
27
	}
28
}
29