Пример #1
0
 /**
  * Clear weather
  */
 public function clear()
 {
     $this->Temperature->setTemperature(null);
     $this->Condition->set(Condition::UNKNOWN);
     $this->WindSpeed->set(null);
     $this->WindDegree->set(null);
     $this->Humidity->set(null);
     $this->Pressure->set(null);
 }
Пример #2
0
 /**
  * Is the weather-data empty?
  * @return bool
  */
 public function isEmpty()
 {
     return $this->Temperature->isUnknown() && $this->Condition->isUnknown() && $this->WindSpeed->isUnknown() && $this->WindDegree->isUnknown() && $this->Humidity->isUnknown() && $this->Pressure->isUnknown();
 }