/** * {@inheritdoc} */ public function __construct(string $name = "The Ideal Stocking Stuffer", array $parts = ['mine' => 'The first AdventCoin is <info>%d</info>', 'mineHarder' => 'The second AdventCoin is <info>%d</info>']) { parent::__construct($name, $parts); }
{ $this->addToGridHtml("</{$tag}>"); } public function closeTable() { $this->addToGridHtml('</tbody></table>'); } public function addToGridHtml($content) { $this->gridHtml .= $content; } public function mapBlackSquares() { } } $puzzle = new Puzzle(); $puzzle->initialise(); $gridHtml = $puzzle->returnGrid(); ?> <!doctype html> <html> <head> <style> table{ border-collapse: collapse; }
/** * {@inheritdoc} */ public function __construct(string $name = "Doesn't He Have Intern-Elves For This?", array $parts = ['strings' => 'There are <info>%d</info> nice strings in there', 'moarStrings' => 'According to the new Santa parameters, there are <info>%d</info> nice strings in there']) { parent::__construct($name, $parts); }