<?php
class Game {
public $url;
public $title;
public $author;
public $description;
public $date;
public function print() {
$output = "* [«".trim($this->title)."»](".trim($this->url).") — ".trim($this->author);
if ($this->description) {
$output .= " \n".$this->description."\n";
} else {
$output .= "\n";
}
return $output;