2014-02-10 22:54:49 +01:00
|
|
|
<?php
|
2014-04-12 12:14:37 +02:00
|
|
|
|
|
|
|
namespace ManiaControl\Update;
|
|
|
|
|
2014-02-10 22:54:49 +01:00
|
|
|
/**
|
|
|
|
* UpdateStructure
|
|
|
|
*
|
|
|
|
* @author steeffeen & kremsy
|
2014-04-12 12:14:37 +02:00
|
|
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2014-02-10 22:54:49 +01:00
|
|
|
*/
|
|
|
|
class UpdateData {
|
2014-04-12 12:14:37 +02:00
|
|
|
/*
|
|
|
|
* Public Properties
|
|
|
|
*/
|
2014-02-10 22:54:49 +01:00
|
|
|
public $version = 0;
|
|
|
|
public $channel = "";
|
|
|
|
public $url = "";
|
|
|
|
public $releaseDate = "";
|
2014-04-14 14:38:00 +02:00
|
|
|
public $minDedicatedBuild = "";
|
2014-04-12 12:14:37 +02:00
|
|
|
/**
|
|
|
|
* Construct new Update Data
|
|
|
|
*
|
2014-04-14 14:38:00 +02:00
|
|
|
* @param Object $updateData
|
2014-04-12 12:14:37 +02:00
|
|
|
*/
|
2014-02-10 22:54:49 +01:00
|
|
|
public function __construct($updateData) {
|
|
|
|
$this->version = $updateData->version;
|
|
|
|
$this->channel = $updateData->channel;
|
|
|
|
$this->url = $updateData->url;
|
|
|
|
$this->releaseDate = $updateData->release_date;
|
2014-04-14 14:38:00 +02:00
|
|
|
$this->minDedicatedBuild = $updateData->min_dedicated_build;
|
2014-02-10 22:54:49 +01:00
|
|
|
}
|
2014-04-12 12:14:37 +02:00
|
|
|
}
|