diff options
author | Fbenas <philbeansburton@gmail.com> | 2017-03-12 04:02:03 +0000 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2017-03-12 04:02:03 +0000 |
commit | 755248886ad294bade86cb8a5ce36465b5193f36 (patch) | |
tree | d7a55ad3b1913b2a71e3616a3b14693268b10b22 /src/Game.php | |
parent | 1eeeb808275e6e0bcff6ed0c2e7b109d81da67e7 (diff) |
Inital commit, created message handler
Diffstat (limited to 'src/Game.php')
-rw-r--r-- | src/Game.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Game.php b/src/Game.php new file mode 100644 index 0000000..3a62f3e --- /dev/null +++ b/src/Game.php @@ -0,0 +1,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); + } + +} |