Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class SpreadDataModel |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | private $time; |
||
20 | /** |
||
21 | * @var float |
||
22 | */ |
||
23 | private $bid; |
||
24 | /** |
||
25 | * @var float |
||
26 | */ |
||
27 | private $ask; |
||
28 | |||
29 | /** |
||
30 | * SpreadDataModel constructor. |
||
31 | * @param int $time |
||
32 | * @param float $bid |
||
33 | * @param float $ask |
||
34 | */ |
||
35 | 3 | public function __construct($time, $bid, $ask) |
|
36 | { |
||
37 | 3 | $this->time = $time; |
|
38 | 3 | $this->bid = $bid; |
|
39 | 3 | $this->ask = $ask; |
|
40 | 3 | } |
|
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | 1 | public function getTime() |
|
46 | { |
||
47 | 1 | return $this->time; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return float |
||
52 | */ |
||
53 | 1 | public function getBid() |
|
54 | { |
||
55 | 1 | return $this->bid; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return float |
||
60 | */ |
||
61 | 1 | public function getAsk() |
|
64 | } |
||
65 | } |
||
66 |