PHP 클래스 Swift_Events_CommandEvent, Halite

저자: Chris Corbyn ([email protected])
상속: extends Swift_Events
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Swift_Transport $source, string $command, array $successCodes = [] ) Create a new CommandEvent for $source with $command.
getCommand ( ) : string Get the command which was sent to the server.
getSuccessCodes ( ) : integer[] Get the numeric response codes which indicate success for this command.

메소드 상세

__construct() 공개 메소드

Create a new CommandEvent for $source with $command.
public __construct ( Swift_Transport $source, string $command, array $successCodes = [] )
$source Swift_Transport
$command string
$successCodes array

getCommand() 공개 메소드

Get the command which was sent to the server.
public getCommand ( ) : string
리턴 string

getSuccessCodes() 공개 메소드

Get the numeric response codes which indicate success for this command.
public getSuccessCodes ( ) : integer[]
리턴 integer[]