. */ use \Pandoc\Pandoc; class Game { public $url; public $title; public $author; public $description; /** * Дата выхода игры. * * @var DateTime */ public $date; public $image; public $platform; public $url_online; public $url_download; public $url_discussion; public $url_download_description; public $url_online_description; public $language; public $categories; public function print() { $converter = new Pandoc(); if (STYLE === 'RUS') { if (FORMAT === 'MARKDOWN') { $output = "* [«".trim($this->title)."»](".trim($this->url).")"; if ($this->author) { $output .= " — *".trim($this->author)."*"; } } if (FORMAT === 'HTML') { $output = '
".$this->description."\n"; } } if (FORMAT === 'MARKDOWN') { $output .= "\n"; } if (FORMAT === 'HTML') { $output .= "