Total Complexity | 9 |
Total Lines | 120 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class OHLCDataModel |
||
6 | { |
||
7 | /** |
||
8 | * @var int |
||
9 | */ |
||
10 | private $time; |
||
11 | /** |
||
12 | * @var float |
||
13 | */ |
||
14 | private $open; |
||
15 | /** |
||
16 | * @var float |
||
17 | */ |
||
18 | private $high; |
||
19 | /** |
||
20 | * @var float |
||
21 | */ |
||
22 | private $low; |
||
23 | /** |
||
24 | * @var float |
||
25 | */ |
||
26 | private $close; |
||
27 | /** |
||
28 | * @var float |
||
29 | */ |
||
30 | private $vwap; |
||
31 | /** |
||
32 | * @var float |
||
33 | */ |
||
34 | private $volume; |
||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | private $count; |
||
39 | |||
40 | /** |
||
41 | * OHLCDataModel constructor. |
||
42 | * @param int $time |
||
43 | * @param float $open |
||
44 | * @param float $high |
||
45 | * @param float $low |
||
46 | * @param float $close |
||
47 | * @param float $vwap |
||
48 | * @param float $volume |
||
49 | * @param int $count |
||
50 | */ |
||
51 | public function __construct($time, $open, $high, $low, $close, $vwap, $volume, $count) |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return int |
||
65 | */ |
||
66 | public function getTime() |
||
67 | { |
||
68 | return $this->time; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return float |
||
73 | */ |
||
74 | public function getOpen() |
||
75 | { |
||
76 | return $this->open; |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @return float |
||
81 | */ |
||
82 | public function getHigh() |
||
83 | { |
||
84 | return $this->high; |
||
85 | } |
||
86 | |||
87 | /** |
||
88 | * @return float |
||
89 | */ |
||
90 | public function getLow() |
||
91 | { |
||
92 | return $this->low; |
||
93 | } |
||
94 | |||
95 | /** |
||
96 | * @return float |
||
97 | */ |
||
98 | public function getClose() |
||
99 | { |
||
100 | return $this->close; |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * @return float |
||
105 | */ |
||
106 | public function getVwap() |
||
109 | } |
||
110 | |||
111 | /** |
||
112 | * @return float |
||
113 | */ |
||
114 | public function getVolume() |
||
115 | { |
||
116 | return $this->volume; |
||
117 | } |
||
118 | |||
119 | /** |
||
120 | * @return int |
||
121 | */ |
||
122 | public function getCount() |
||
125 | } |
||
126 | } |
||
127 |