18 lines
378 B
PHP
18 lines
378 B
PHP
<?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;
|
|
}
|
|
}
|