| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class OrderBookPriceItemResponse extends AbstractResponse implements IOrderBookResponsePriceItemInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var float $price |
||
| 12 | */ |
||
| 13 | private float $price; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var float $quantity |
||
| 17 | */ |
||
| 18 | private float $quantity; |
||
| 19 | |||
| 20 | public function __construct(array $data) |
||
| 21 | { |
||
| 22 | $this->price = $data[0]; |
||
| 23 | $this->quantity = $data[1]; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return float |
||
| 28 | */ |
||
| 29 | public function getPrice(): float |
||
| 30 | { |
||
| 31 | return $this->price; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return float |
||
| 36 | */ |
||
| 37 | public function getQuantity(): float |
||
| 40 | } |
||
| 41 | } |
||
| 42 |