Files
scummvm-web/include/Objects/Article.php
T
2019-01-22 19:49:58 -05:00

41 lines
802 B
PHP

<?php
namespace ScummVM\Objects;
/**
* The article class represents a link on the website to an article covering
* ScummVM in some way.
*/
class Article extends BasicObject
{
private $url;
private $language;
private $posted;
/* Article object constructor. */
public function __construct($data)
{
parent::__construct($data);
$this->url = $data['url'];
$this->language = $data['language'];
$this->posted = $data['posted'];
}
/* Get the URL. */
public function getURL()
{
return $this->url;
}
/* Get the language. */
public function getLanguage()
{
return $this->language;
}
/* Get the date it was posted. */
public function getPosted()
{
return $this->posted;
}
}