/** * Weather object * @return \Runalyze\Data\Weather */ public function object() { $weather = new \Runalyze\Data\Weather($this->Strategy->temperature(), $this->Strategy->condition(), $this->Strategy->windSpeed(), $this->Strategy->windDegree(), $this->Strategy->humidity(), $this->Strategy->pressure()); if (!$weather->isEmpty()) { $weather->setSource($this->Strategy->sourceId()); } return $weather; }
/** * Weather object * @return \Runalyze\Data\Weather */ public function object() { return new \Runalyze\Data\Weather($this->Strategy->temperature(), $this->Strategy->condition(), $this->Strategy->windSpeed(), $this->Strategy->windDegree(), $this->Strategy->humidity(), $this->Strategy->pressure()); }