diff options
author | Fbenas <philbeansburton@gmail.com> | 2017-03-12 17:46:18 +0000 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2017-03-12 17:46:18 +0000 |
commit | 6f4cd9178ba55ffb3fd80816cf9f4cda39ee0cad (patch) | |
tree | 83a3f14c14d9f426139b94e4dec2f46a21826bdb /src/Game.php | |
parent | a61df3888e726938f9f6b3af9cb4c8084907dfc6 (diff) |
Doc block and PSR
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); } - } |