version = $updateData->version; $this->channel = $updateData->channel; $this->url = $updateData->url; $this->releaseDate = $updateData->release_date; $this->minDedicatedBuild = $updateData->min_dedicated_build; } /** * Check if the Update Data is newer than the given Date * * @param string $compareDate * @return bool */ public function isNewerThan($compareDate) { if (!$compareDate) { return true; } $compareTime = strtotime($compareDate); $releaseTime = strtotime($this->releaseDate); return ($releaseTime > $compareTime); } }