blob: 3a62f3ee0c9492f47ab9e7682fc9adbe041414c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
namespace App;
use App\Message\Handler;
/**
* A Game class that handles game execution
*/
class Game
{
protected $messages;
public function __construct()
{
$this->init();
}
protected function init()
{
// Do any pre set-up
$this->handler = new Handler(['inject']);
$this->sendOpeningMessage();
}
public function sendOpeningMessage()
{
$message = $this->handler->renderOpeningMessage();
$important = $this->handler->returnImportant('inject');
var_dump($message, $important);
}
}
|