mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
4d78399ea2
In the new data model, some field operate as keys for other parts of the model. This now performs some validations and will throw an error if fields are missing. For example: a Game must have an Engine, but does not require datafiles
24 lines
474 B
PHP
24 lines
474 B
PHP
<?php
|
|
namespace ScummVM\Objects;
|
|
|
|
/**
|
|
* The Platform object represents the named representation of a game platform
|
|
*/
|
|
class Platform extends DataObject
|
|
{
|
|
private $name;
|
|
|
|
/* Article object constructor. */
|
|
public function __construct($data)
|
|
{
|
|
parent::__construct($data);
|
|
$this->name = $this->assignFromArray('name', $data, true);
|
|
}
|
|
|
|
/* Get the platform name. */
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|