Passed
Push — master ( 7077b7...c50ccd )
by Alec
02:59
created

Volume   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 37
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setSell() 0 4 1
A setBuy() 0 4 1
A setTotal() 0 4 1
1
<?php
2
/**
3
 * User: alec
4
 * Date: 19.11.18
5
 * Time: 20:30
6
 */
7
8
namespace AlecRabbit\Structures;
9
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
44
    {
45
        $this->sell = $sell;
46
        return $this;
47
    }
48
}
49