PHP 클래스 Slackwolf\Game\Command\Command

파일 보기 프로젝트 열기: chrisgillis/slackwolf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$args array
$channel string The channel ID, example: "D0HJF2J5L".
$client Slackwolf\SlackRTMClient
$game Slackwolf\Game\Game
$gameManager Slackwolf\Game\GameManager
$message Slackwolf\Message\Message
$userId Slack\string The user ID of the command executor, example: "U0H9HHZ8V"

공개 메소드들

메소드 설명
__construct ( RealTimeClient $client, GameManager $gameManager, Message $message, array $args = null ) Command constructor.
fire ( ) : void Fires the command.
init ( )

메소드 상세

__construct() 공개 메소드

Command constructor.
public __construct ( RealTimeClient $client, GameManager $gameManager, Message $message, array $args = null )
$client Slack\RealTimeClient The Slack API client.
$gameManager Slackwolf\Game\GameManager The game manager.
$message Slackwolf\Message\Message The message object.
$args array

fire() 추상적인 공개 메소드

Fires the command.
abstract public fire ( ) : void
리턴 void

init() 공개 메소드

public init ( )

프로퍼티 상세

$args 보호되어 있는 프로퍼티

protected array $args
리턴 array

$channel 보호되어 있는 프로퍼티

The channel ID, example: "D0HJF2J5L".
protected string $channel
리턴 string

$client 보호되어 있는 프로퍼티

protected SlackRTMClient,Slackwolf $client
리턴 Slackwolf\SlackRTMClient

$game 보호되어 있는 프로퍼티

protected Game,Slackwolf\Game $game
리턴 Slackwolf\Game\Game

$gameManager 보호되어 있는 프로퍼티

protected GameManager,Slackwolf\Game $gameManager
리턴 Slackwolf\Game\GameManager

$message 보호되어 있는 프로퍼티

protected Message,Slackwolf\Message $message
리턴 Slackwolf\Message\Message

$userId 보호되어 있는 프로퍼티

The user ID of the command executor, example: "U0H9HHZ8V"
protected string,Slack $userId
리턴 Slack\string