WEB: Add new Models and Objects to support the new data files

This commit is contained in:
Mataniko authored and Matan Bareket committed 2020-09-27 22:08:07 -04:00
1 parent c6207590c9
commit a75a6c70ee
11 files changed
+333

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
<?php
namespace ScummVM\Objects;
/**
* The Engine object represents a game engine supported by ScummVM
*/
class Engine extends DataObject
{
private $name;
private $alt_name;
private $enabled;
/* Article object constructor. */
public function __construct($data)
{
parent::__construct($data);
$this->name = $data['name'];
$this->alt_name = $data['alt_name'];
$this->enabled = $data['enabled'];
}
/* Get the engine name. */
public function getName()
{
return $this->name;
}
/* Get the alternative name */
public function getAltName()
{
return $this->alt_name;
}
/* Get the engine enabled status. */
public function getEnabled()
{
return $this->enabled;
}
}