mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
41 lines
802 B
PHP
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;
|
|
}
|
|
}
|