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