getGame() public method

public getGame ( $id ) : Game | boolean
$id
return Game | boolean
Example #1
0
 /**
  * Command constructor.
  *
  * @param RealTimeClient $client
  *   The Slack API client.
  *
  * @param GameManager $gameManager
  *   The game manager.
  *
  * @param \Slackwolf\Message\Message $message
  *   The message object.
  *
  * @param array|NULL $args
  */
 public function __construct(RealTimeClient $client, GameManager $gameManager, Message $message, array $args = null)
 {
     $this->client = $client;
     $this->gameManager = $gameManager;
     $this->message = $message;
     $this->userId = $message->getUser();
     $this->channel = $message->getChannel();
     $this->args = $args;
     $this->game = $this->gameManager->getGame($this->channel);
     echo get_called_class() . " " . $this->userId . " " . $this->channel . "\r\n";
 }