| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Volume |
||
| 11 | { |
||
| 12 | /** @var float */ |
||
| 13 | public $total = 0; |
||
| 14 | /** @var float */ |
||
| 15 | public $buy = 0; |
||
| 16 | /** @var float */ |
||
| 17 | public $sell = 0; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param float $total |
||
| 21 | * @return Volume |
||
| 22 | */ |
||
| 23 | public function setTotal(float $total): Volume |
||
| 24 | { |
||
| 25 | $this->total = $total; |
||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param float $buy |
||
| 31 | * @return Volume |
||
| 32 | */ |
||
| 33 | public function setBuy(float $buy): Volume |
||
| 34 | { |
||
| 35 | $this->buy = $buy; |
||
| 36 | return $this; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param float $sell |
||
| 41 | * @return Volume |
||
| 42 | */ |
||
| 43 | public function setSell(float $sell): Volume |
||
| 47 | } |
||
| 48 | } |
||
| 49 |