PHP Class Maknz\Slack\AttachmentAction

Afficher le fichier Open project: maknz/slack

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

Instantiate a new AttachmentAction.
public __construct ( array $attributes ) : void
$attributes array
Résultat void

getConfirm() public méthode

public getConfirm ( ) : ActionConfirmation
Résultat ActionConfirmation

getName() public méthode

public getName ( ) : string
Résultat string

getStyle() public méthode

public getStyle ( ) : string
Résultat string

getText() public méthode

public getText ( ) : string
Résultat string

getType() public méthode

public getType ( ) : string
Résultat string

getValue() public méthode

public getValue ( ) : string
Résultat string

setConfirm() public méthode

public setConfirm ( ActionConfirmation | array $confirm ) : AttachmentAction
$confirm ActionConfirmation | array
Résultat AttachmentAction

setName() public méthode

public setName ( string $name ) : AttachmentAction
$name string
Résultat AttachmentAction

setStyle() public méthode

public setStyle ( string $style ) : AttachmentAction
$style string
Résultat AttachmentAction

setText() public méthode

public setText ( string $text ) : AttachmentAction
$text string
Résultat AttachmentAction

setType() public méthode

public setType ( string $type ) : AttachmentAction
$type string
Résultat AttachmentAction

setValue() public méthode

public setValue ( string $value ) : AttachmentAction
$value string
Résultat AttachmentAction

toArray() public méthode

Get the array representation of this attachment action.
public toArray ( ) : array
Résultat array

Property Details

$confirm protected_oe property

Confirmation field.
protected ActionConfirmation,Maknz\Slack $confirm
Résultat ActionConfirmation

$name protected_oe property

The required name field of the action. The name will be returned to your Action URL.
protected string $name
Résultat string

$style protected_oe property

Button style.
protected string $style
Résultat string

$text protected_oe property

The required label for the action.
protected string $text
Résultat string

$type protected_oe property

The required type of the action.
protected string $type
Résultat string

$value protected_oe property

Optional value. It will be sent to your Action URL.
protected string $value
Résultat string