@@ -36,25 +36,27 @@ class Temperature
3636 * @var Unit The maximal temperature.
3737 */
3838 public $ max ;
39+
3940 /**
40- * @var Unit The day temperature.
41+ * @var Unit The day temperature. Might not be null.
4142 */
4243 public $ day ;
4344
4445 /**
45- * @var Unit The morning temperature.
46+ * @var Unit The morning temperature. Might not be null.
4647 */
4748 public $ morning ;
4849
4950 /**
50- * @var Unit The evening temperature.
51+ * @var Unit The evening temperature. Might not be null.
5152 */
5253 public $ evening ;
5354
5455 /**
55- * @var Unit The night temperature.
56+ * @var Unit The night temperature. Might not be null.
5657 */
5758 public $ night ;
59+
5860 /**
5961 * Returns the current temperature as formatted string.
6062 *
@@ -111,14 +113,14 @@ public function getFormatted()
111113 * @param Unit $now The current temperature.
112114 * @param Unit $min The minimal temperature.
113115 * @param Unit $max The maximal temperature.
114- * @param Unit day The day temperature.
115- * @param Unit $morning The morning temperature.
116- * @param Unit $evening The evening temperature.
117- * @param Unit $night The night temperature.
116+ * @param Unit $ day The day temperature. Might not be null .
117+ * @param Unit $morning The morning temperature. Might not be null.
118+ * @param Unit $evening The evening temperature. Might not be null.
119+ * @param Unit $night The night temperature. Might not be null.
118120 *
119121 * @internal
120122 */
121- public function __construct (Unit $ now , Unit $ min , Unit $ max , Unit $ day , Unit $ morning , Unit $ evening , Unit $ night )
123+ public function __construct (Unit $ now , Unit $ min , Unit $ max , Unit $ day = null , Unit $ morning = null , Unit $ evening = null , Unit $ night = null )
122124 {
123125 $ this ->now = $ now ;
124126 $ this ->min = $ min ;
0 commit comments