Total Complexity | 5 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class OrderBookPriceItemResponse extends AbstractResponse implements IOrderBookPriceResponseInterface |
||
9 | { |
||
10 | /** |
||
11 | * Price position value |
||
12 | * @var float |
||
13 | */ |
||
14 | private float $price; |
||
15 | |||
16 | /** |
||
17 | * Quantity position value |
||
18 | * @var float |
||
19 | */ |
||
20 | private float $quantity; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @param array $data |
||
25 | */ |
||
26 | public function __construct(array $data) |
||
27 | { |
||
28 | $this |
||
29 | ->setPrice($data[0]) |
||
30 | ->setQuantity($data[1]); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param float $price |
||
35 | * @return $this |
||
36 | */ |
||
37 | private function setPrice(float $price): self |
||
38 | { |
||
39 | $this->price = $price; |
||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return float |
||
45 | */ |
||
46 | public function getPrice(): float |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param float $quantity |
||
53 | * @return MergedOrderBookResponseItem |
||
|
|||
54 | */ |
||
55 | private function setQuantity(float $quantity): self |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return float |
||
63 | */ |
||
64 | public function getQuantity(): float |
||
69 |
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