PHP 클래스 Frlnc\Slack\Core\Commander

파일 보기 프로젝트 열기: frlnc/php-slack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$baseUrl string The base URL.
$commands array The commands.
$defaultHeaders array The default command headers.
$interactor Frlnc\Slack\Contracts\Http\Interactor The Http interactor.
$token string The API token.

공개 메소드들

메소드 설명
__construct ( string $token, Frlnc\Slack\Contracts\Http\Interactor $interactor )
execute ( string $command, array $parameters = [] ) : Frlnc\Slack\Contracts\Http\Response Executes a command.
format ( string $string ) : string Formats a string for Slack.
setToken ( string $token ) Sets the token.

메소드 상세

__construct() 공개 메소드

public __construct ( string $token, Frlnc\Slack\Contracts\Http\Interactor $interactor )
$token string
$interactor Frlnc\Slack\Contracts\Http\Interactor

execute() 공개 메소드

Executes a command.
public execute ( string $command, array $parameters = [] ) : Frlnc\Slack\Contracts\Http\Response
$command string
$parameters array
리턴 Frlnc\Slack\Contracts\Http\Response

format() 공개 정적인 메소드

Formats a string for Slack.
public static format ( string $string ) : string
$string string
리턴 string

setToken() 공개 메소드

Sets the token.
public setToken ( string $token )
$token string

프로퍼티 상세

$baseUrl 보호되어 있는 정적으로 프로퍼티

The base URL.
protected static string $baseUrl
리턴 string

$commands 보호되어 있는 정적으로 프로퍼티

The commands.
protected static array $commands
리턴 array

$defaultHeaders 보호되어 있는 정적으로 프로퍼티

The default command headers.
protected static array $defaultHeaders
리턴 array

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

The Http interactor.
protected Interactor,Frlnc\Slack\Contracts\Http $interactor
리턴 Frlnc\Slack\Contracts\Http\Interactor

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

The API token.
protected string $token
리턴 string