PHP Класс Maknz\Slack\AttachmentAction

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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