Files
scummvm-web/include/Objects/Article.php
T
2021-04-02 22:01:06 -04:00

49 lines
1005 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 $source;
private $date;
/* Article object constructor. */
public function __construct($data)
{
parent::__construct($data);
$this->url = $data['url'] ?? null;
$this->language = $data['language'] ?? null;
$this->source = $data['source'] ?? null;
$this->date = $data['date'] ?? null;
}
/* Get the URL. */
public function getURL()
{
return $this->url;
}
/* Get the language. */
public function getLanguage()
{
return $this->language;
}
/* Get the source that published it. */
public function getSource()
{
return $this->source;
}
/* Get the date it was posted. */
public function getDate()
{
return $this->date;
}
}