16 lines
315 B
PHP
16 lines
315 B
PHP
<?php
|
|
class Game {
|
|
public $url;
|
|
public $title;
|
|
public $author;
|
|
public $description;
|
|
public $date;
|
|
public function print() {
|
|
echo "<li><a href='$this->url'>«".$this->title."»</a> — $this->author";
|
|
if ($this->description) {
|
|
echo "<br>$this->description";
|
|
}
|
|
echo "</li>\n";
|
|
}
|
|
}
|