1 | <?php |
||
16 | class Temperature implements ModelInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var float |
||
20 | */ |
||
21 | protected $current = null; |
||
22 | |||
23 | /** |
||
24 | * @var float |
||
25 | */ |
||
26 | protected $max = null; |
||
27 | |||
28 | /** |
||
29 | * @var float |
||
30 | */ |
||
31 | protected $min = null; |
||
32 | |||
33 | /** |
||
34 | * @var float |
||
35 | */ |
||
36 | protected $apparent = null; |
||
37 | |||
38 | /** |
||
39 | * @api |
||
40 | * |
||
41 | * @return float |
||
42 | */ |
||
43 | public function getCurrent($precision = 2) |
||
47 | |||
48 | /** |
||
49 | * @api |
||
50 | * |
||
51 | * @return float |
||
52 | */ |
||
53 | public function getMax() |
||
57 | |||
58 | /** |
||
59 | * @api |
||
60 | * |
||
61 | * @return float |
||
62 | */ |
||
63 | public function getMin() |
||
67 | |||
68 | /** |
||
69 | * @api |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function __toString() |
||
77 | |||
78 | /** |
||
79 | * @param array $data |
||
80 | * @return $this |
||
81 | */ |
||
82 | public function setData(array $data) |
||
99 | } |
||
100 |