diff options
Diffstat (limited to 'src/Game.php')
-rw-r--r-- | src/Game.php | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/Game.php b/src/Game.php index c2141ce..1bedba2 100644 --- a/src/Game.php +++ b/src/Game.php @@ -6,16 +6,26 @@ use App\Message\Handler; /** * A Game class that handles game execution + * + * @author Phil Burton <phil@pgburton.com> */ class Game { - protected $messages; - + /** + * Constuct a new Game + * + * @author Phil Burton <phil@pgburton.com> + */ public function __construct() { $this->init(); } + /** + * Initalise the Game + * + * @author Phil Burton <phil@pgburton.com> + */ protected function init() { // Do any pre set-up @@ -23,6 +33,10 @@ class Game $this->sendOpeningMessage(); } + /** + * Send opening message + * @author Phil Burton <phil@pgburton.com> + */ public function sendOpeningMessage() { $message = $this->handler->renderOpeningMessage(); @@ -33,5 +47,4 @@ class Game var_dump($message, $important, $message2); } - } |