PHP 클래스 Maknz\Slack\AttachmentAction

파일 보기 프로젝트 열기: maknz/slack

보호된 프로퍼티들

프로퍼티 타입 설명
$confirm ActionConfirmation Confirmation field.
$name string The required name field of the action. The name will be returned to your Action URL.
$style string Button style.
$text string The required label for the action.
$type string The required type of the action.
$value string Optional value. It will be sent to your Action URL.

공개 메소드들

메소드 설명
__construct ( array $attributes ) : void Instantiate a new AttachmentAction.
getConfirm ( ) : ActionConfirmation
getName ( ) : string
getStyle ( ) : string
getText ( ) : string
getType ( ) : string
getValue ( ) : string
setConfirm ( ActionConfirmation | array $confirm ) : AttachmentAction
setName ( string $name ) : AttachmentAction
setStyle ( string $style ) : AttachmentAction
setText ( string $text ) : AttachmentAction
setType ( string $type ) : AttachmentAction
setValue ( string $value ) : AttachmentAction
toArray ( ) : array Get the array representation of this attachment action.

메소드 상세

__construct() 공개 메소드

Instantiate a new AttachmentAction.
public __construct ( array $attributes ) : void
$attributes array
리턴 void

getConfirm() 공개 메소드

public getConfirm ( ) : ActionConfirmation
리턴 ActionConfirmation

getName() 공개 메소드

public getName ( ) : string
리턴 string

getStyle() 공개 메소드

public getStyle ( ) : string
리턴 string

getText() 공개 메소드

public getText ( ) : string
리턴 string

getType() 공개 메소드

public getType ( ) : string
리턴 string

getValue() 공개 메소드

public getValue ( ) : string
리턴 string

setConfirm() 공개 메소드

public setConfirm ( ActionConfirmation | array $confirm ) : AttachmentAction
$confirm ActionConfirmation | array
리턴 AttachmentAction

setName() 공개 메소드

public setName ( string $name ) : AttachmentAction
$name string
리턴 AttachmentAction

setStyle() 공개 메소드

public setStyle ( string $style ) : AttachmentAction
$style string
리턴 AttachmentAction

setText() 공개 메소드

public setText ( string $text ) : AttachmentAction
$text string
리턴 AttachmentAction

setType() 공개 메소드

public setType ( string $type ) : AttachmentAction
$type string
리턴 AttachmentAction

setValue() 공개 메소드

public setValue ( string $value ) : AttachmentAction
$value string
리턴 AttachmentAction

toArray() 공개 메소드

Get the array representation of this attachment action.
public toArray ( ) : array
리턴 array

프로퍼티 상세

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

Confirmation field.
protected ActionConfirmation,Maknz\Slack $confirm
리턴 ActionConfirmation

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

The required name field of the action. The name will be returned to your Action URL.
protected string $name
리턴 string

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

Button style.
protected string $style
리턴 string

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

The required label for the action.
protected string $text
리턴 string

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

The required type of the action.
protected string $type
리턴 string

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

Optional value. It will be sent to your Action URL.
protected string $value
리턴 string