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