mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
34 lines
677 B
PHP
34 lines
677 B
PHP
<?php
|
|
require_once('Objects/BasicObject.php');
|
|
/**
|
|
* The GameDemo class represents a game demo item on the website.
|
|
*/
|
|
class GameDemo extends BasicObject {
|
|
private $_name;
|
|
private $_url;
|
|
private $_target;
|
|
|
|
/* GameDemo object constructor. */
|
|
public function __construct($data) {
|
|
$this->_name = $data['name'];
|
|
$this->_url = $data['url'];
|
|
$this->_target = $data['target'];
|
|
}
|
|
|
|
/* Get the name of the demo. */
|
|
public function getName() {
|
|
return $this->_name;
|
|
}
|
|
|
|
/* Get the download URL for the demo. */
|
|
public function getURL() {
|
|
return $this->_url;
|
|
}
|
|
|
|
/* Get the target name for the demo. */
|
|
public function getTarget() {
|
|
return $this->_target;
|
|
}
|
|
}
|
|
?>
|