From 6f4cd9178ba55ffb3fd80816cf9f4cda39ee0cad Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sun, 12 Mar 2017 17:46:18 +0000 Subject: Doc block and PSR --- src/Game.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/Game.php') 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 */ class Game { - protected $messages; - + /** + * Constuct a new Game + * + * @author Phil Burton + */ public function __construct() { $this->init(); } + /** + * Initalise the Game + * + * @author Phil Burton + */ protected function init() { // Do any pre set-up @@ -23,6 +33,10 @@ class Game $this->sendOpeningMessage(); } + /** + * Send opening message + * @author Phil Burton + */ public function sendOpeningMessage() { $message = $this->handler->renderOpeningMessage(); @@ -33,5 +47,4 @@ class Game var_dump($message, $important, $message2); } - } -- cgit v1.2.3