Files
scummvm-web/include/Objects/Version.php
T
Mataniko 4d78399ea2 WEB: Add error handling about missing required fields
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
2020-09-27 22:08:07 -04:00

24 lines
455 B
PHP

<?php
namespace ScummVM\Objects;
/**
* The Version object represents a ScummVM release version
*/
class Version extends DataObject
{
private $date;
/* Article object constructor. */
public function __construct($data)
{
parent::__construct($data);
$this->date = $this->assignFromArray('date', $data);
}
/* Get the version release name. */
public function getDate()
{
return $this->date;
}
}